Common Standard I/O Redirections
Function | csh | sh |
Send stdout to file | prog > file | prog > file |
Send stderr to file | prog 2> file | |
Send stdout and stderr to file | prog >& file | prog > file 2>&1 |
Take stdin from file | prog < file | prog < file |
Send stdout to end of file | prog >> file | prog >> file |
Send stderr to end of file | prog 2>> file | |
Send stdout and stderr to end of file | prog >>& file | prog >> file 2>&1 |
Read stdin from keyboard until c | prog <<c | prog <<c |
Pipe stdout to prog2 | prog | prog2 | prog | prog2 |
Pipe stdout and stderr to prog2 | prog |& prog2 | prog 2>&1 | prog2 |
'TA > Common' 카테고리의 다른 글
[pam.d] 패스워드 복잡성 적용 방법 (1) | 2012.12.13 |
---|---|
[gparted] gparted 설치 (fedora17) (0) | 2012.12.13 |
[ssh] ssh keep-alive tip (0) | 2012.03.27 |
[nfs] nfs 파일 시스템에서 파일 lock 이 되지 않을 때 (0) | 2012.03.21 |
[nfs] nfs 서버와 클라이언트 계정 동기화 설정 (0) | 2011.10.19 |