Gossamer Forum
Home : General : Chit Chat :

sed question

Quote Reply
sed question
$ abc=`grep -n '^LETTERS' file.txt | awk -F: '{print $1}'`
$ echo $abc
10

To print from line 10 to the end of the file:
$ sed -n '10,$p' file.txt

How do I add this to my script because this does not work.

$ sed -n '$abc',$p' file.txt

Any help will be appreciated.

Thanks!
Subject Author Views Date
Thread sed question narsman 5243 Aug 10, 2004, 4:16 PM
Post Re: [narsman] sed question
Andy 5095 Aug 11, 2004, 3:24 AM
Thread Re: [narsman] sed question
B::Parse 5090 Aug 15, 2004, 5:32 PM
Post Re: [B::Parse] sed question
narsman 5010 Aug 16, 2004, 10:35 AM