OS/LINUX
특정 라인부터 원하는 줄까지 출력하기
홍조
2011. 10. 25. 16:21
35라인에서부터 끝까지 출력
여러 파일이 존재하는 경우
여러 파일 합치기
$ sed -n '35,$ p' file
여러 파일이 존재하는 경우
$ ls file* | while read file; do sed -n '35,$ p' $file > $file.line; done
여러 파일 합치기
$ cat file*.line > file.merge
728x90