On Sat, May 15, 2004 at 02:42:11PM -0700, William Ballard wrote:
> sed '/b/,$p' file outputs:
ah, I missed the '-n'.
I still think it's six one half dozen the other.
I've never used '-n' in sed before. This '-n' is a strange and curious
character.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTE
On Sat, May 15, 2004 at 02:42:11PM -0700, William Ballard wrote:
> sed '/b/,$p' file outputs:
ah, I missed the '-n'.
I still think it's six one half dozen the other.
I've never used '-n' in sed before. This '-n' is a strange and curious
character.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTE
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:
Jacob Friis Larsen wrote:
> >>Would it be easier if I already now the line number?
> >>(I found it with grep)
> >
> >I think this will do it:
> >
> >sed '/1083300070/,$!d' file
Very close. Just invert that command.
> I did it like this:
> grep -n "1083300070" updatelog.sql
> sed -n "59507480,999
How can I find which line number contains "1083300070" and then slice
the file from that line number and to its end?
sed
read about ranges, complements (!), and d delete
Would it be easier if I already now the line number?
(I found it with grep)
I think this will do it:
sed '/1083300070/,$!d' fi
On Fri, May 14, 2004 at 01:10:15AM +0200, Jacob Friis Larsen wrote:
> >>How can I find which line number contains "1083300070" and then slice
> >>the file from that line number and to its end?
> >
> >sed
> >
> >read about ranges, complements (!), and d delete
>
> Would it be easier if I already n
How can I find which line number contains "1083300070" and then slice
the file from that line number and to its end?
sed
read about ranges, complements (!), and d delete
Would it be easier if I already now the line number?
(I found it with grep)
Thanks,
Jacob
--
To UNSUBSCRIBE, email to [EMAIL PR
On Fri, May 14, 2004 at 12:45:56AM +0200, Jacob Friis Larsen wrote:
> How can I find which line number contains "1083300070" and then slice
> the file from that line number and to its end?
sed
read about ranges, complements (!), and d delete
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with
On Fri, May 14, 2004 at 12:45:56AM +0200, Jacob Friis Larsen wrote:
> How can I find which line number contains "1083300070" and then slice
> the file from that line number and to its end?
sed
it has a notion of ranges, complements, and the d delete command
--
To UNSUBSCRIBE, email to [EMAIL
9 matches
Mail list logo