tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dan Hubbard <dhubbard () netpart ! com>
To: tru64-unix-managers
Subject: sed question
Date: Thu, 09 Oct 1997 07:25:10 +0000	[thread overview]
Message-ID: <96078715811473.tru64-unix-managers.marc@archive.invalid> (raw)

After looking through some resources I cannot find the answer on how to do
this with sed :

I have a sample file with the following in it:

good the bad and ugly

Each time this file gets created it will have a different 3rd word, but the
3rd word is always the one I want to extract.

So, I would like to sed the file and extract just the 3rd word ?

I can only see how to extract lines of information like:

sed -e '/b/!d' mush
returns the whole line ?

BTW: sed and awk are my only options on this one.

TIA

------------
Dan Hubbard

             reply	other threads:[~1997-10-09  7:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-09  7:25 Dan Hubbard [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-08-21  3:24 sed question Warren, John H.
2002-06-20 12:09 Ibrahim_Altahan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox