Last active
May 12, 2016 18:48
-
-
Save takegue/06716dffe2a59b18446b22c661dfa0c5 to your computer and use it in GitHub Desktop.
ファイルの途中行を表示する(便利tips集) ref: http://qiita.com/tkngue/items/973279aa34c8c8a7a72a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| awk 'FNR==N,FNR==M' ファイル名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| awk 'FNR==N,FNR==M' * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -sn 'N,Mp' * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -sn 'N,+10p' * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -sn 'N,Mp' ファイル名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail -n + $N | head -n $($N-$M) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment