[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Find string and cut file



On Sat, May 15, 2004 at 02:25:22PM -0600, Bob Proulx wrote:

(William Ballard wrote):
> > >sed '/1083300070/,$!d' file
> 
>   sed -n "/1083300070/,$p" updatelog.sql > updatelog2.sql

I don't think that's right Bob:

Let file contain:
a
b
c
d

sed '/b/,$!d' outputs:
b
c
d

sed '/b/,$p' file outputs:
a
b
b
c
c
d
d



Reply to: