head와 tail

terminal 2010. 2. 15. 21:32
head book.txt
head -20 book.txt
#기본 10줄만 보여주기 때문에 -20을 옵션으로 하면 20줄을 출력한다.

tail book.txt
tail -20 book.txt
#문서의 끝부분을 보여준다.

'terminal' 카테고리의 다른 글

윈도용 문서를 utf-8로 변환  (0) 2010.02.18
pipe와 pager  (0) 2010.02.15
cat  (0) 2010.02.15
기본 명령어  (0) 2010.02.15
osx bash  (0) 2010.02.15
Posted by 착한똘걸
,