Summary:sed question

Craig Russell crussell_1969 at yahoo.com
Thu Jan 27 16:18:32 EST 2005


Many thanks-

Most people pointed out that I was using single quotes
around my sed command which was preventing the shell
from expanding the variables inside which was true for
the incantation I put in the question.  I ended up
using a different solution recommended by 

arno uhlmelmahei" <arno at panix.com>

sed -n 1,33p file >newfile
     cat datafile >>newfile
     sed -n '43,$p' file >>newfile

I placed this into a for loop and got the result I was
looking for.

Many thanks to the following for their suggestions:

JULIAN, JOHN C (AIT)" <jj2195 at sbc.com
francisco" <frisco at blackant.net
Kurt Schulte" <r2kurts at yahoo.com>
Ray Brownrigg" <ray at mcs.vuw.ac.nz
Eric Noriega" <noriega at gwu.edu
John Leadeham" <jl at lammtarra.fslife.co.uk


Also, thanks to John Leadeham for steering me towards
the usenet group news:comp.unix.shell for similar
questions.

Craig Russell
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



More information about the summaries mailing list