Re: sed question
From: Carlos Sousa (csousa_at_tvtel.pt)
Date: 08/31/03
- Previous message: Justin: "Re: Re: WD internal eide160 gb 40-pin recommended packages"
- In reply to: John Habermann: "sed question"
- Next in thread: John Habermann: "Re: sed question"
- Reply: John Habermann: "Re: sed question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Aug 2003 02:10:14 +0100 To: Debian User <debian-user@lists.debian.org>
On Sun, 31 Aug 2003 10:20:46 +1000 John Habermann wrote:
> I have tried things like the following:
>
> sed -e 's/^w.*\s//' > log
>
> thinking that it would delete from the beginning of the line to the
> first white space but it deletes all matched expressions.
(man sed, man grep)
It seems you mean 's/^\w*\s//'
Unfortunately, it seems sed doesn't understand the \w and \s escape
sequences, unlike grep. Better try:
sed 's/^[[:alnum:]]*[[:space:]]*//'
-- Carlos Sousa http://vbc.dyndns.org/ -- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Justin: "Re: Re: WD internal eide160 gb 40-pin recommended packages"
- In reply to: John Habermann: "sed question"
- Next in thread: John Habermann: "Re: sed question"
- Reply: John Habermann: "Re: sed question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|