gaiety revised this gist 3 months ago. Go to revision
1 file changed, 7 insertions
head-tail-trim.sh(file created)
| @@ -0,0 +1,7 @@ | |||
| 1 | + | echo foo\nbar\nbaz | head -n 2 | |
| 2 | + | # foo | |
| 3 | + | # bar | |
| 4 | + | ||
| 5 | + | echo foo\nbar\nbaz | tail -n 2 | |
| 6 | + | # bar | |
| 7 | + | # baz | |
Newer
Older