English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

cat filename.txt | head -37 | tail -15

2006-09-20 19:06:31 · answer #1 · answered by Kyle D 2 · 2 0

This is done by piping, the first is probably awk, the second is for sure grep (regular expression)

awk [not sure the command] | grep "$23" for the #23 line.

2006-09-21 01:19:41 · answer #2 · answered by Andy T 7 · 0 0

This might be best done with a little custom C program. Will you give me ten points if I write it?

2006-09-21 00:58:09 · answer #3 · answered by arbeit 4 · 0 0

awk '{if( NR >= 23 && NR <= 37 ) print NR, $0 }' filename

2006-09-21 02:46:24 · answer #4 · answered by alakit013 5 · 1 0

fedest.com, questions and answers