Re: Sed advice needed
- From: "Georg Heinrich" <georg.heinrich@xxxxxxxxxx>
- Date: Thu, 31 May 2007 19:04:37 +0200
Piers Kittel (debian@xxxxxxxxxx) wrote on Thu, 31 May 2007 17:05:04 +0100:
What's the best way to do this? I've been reading the man pages of
sed, cut and awk but I can't quite figure out how to do this. Any
ideas?
The sed man page is not very helpful I'm afraid. A pretty good manual is
here: <http://www.grymoire.com/Unix/Sed.html>.
Since you want to mask out various parts of your line you have to apply
sed to it various times, like this:
echo "your line" | sed (mask 1) | sed (mask 2) | sed (mask 3)
or, if your text comes from a file:
sed (mask 1) < yourFile | sed (mask 2) | sed (mask 3)
Hope this helps.
G. Heinrich
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- Sed advice needed
- From: Piers Kittel
- Sed advice needed
- Prev by Date: Problem with Debian Etch on s390
- Next by Date: Debian 4 and gfs-tools
- Previous by thread: Re: Sed advice needed
- Next by thread: Re: Sed advice needed
- Index(es):
Relevant Pages
|