tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* sed question
@ 1997-10-09  7:25 Dan Hubbard
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Hubbard @ 1997-10-09  7:25 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* sed question
@ 1998-08-21  3:24 Warren, John H.
  0 siblings, 0 replies; 3+ messages in thread
From: Warren, John H. @ 1998-08-21  3:24 UTC (permalink / raw)
  To: tru64-unix-managers

I have created a text file that contains two lines- one with a timestamp,
the other with one ping command output.  I want to join both lines (remove
the linefeed after the first line), but am having no luck.  I open the file
in vi, and attempt to use the following:
	:1,$s/1998\n/1998/	<<1998 is the last token in the line>>
Any help is appreciated

John H. Warren

^ permalink raw reply	[flat|nested] 3+ messages in thread

* sed question
@ 2002-06-20 12:09 Ibrahim_Altahan
  0 siblings, 0 replies; 3+ messages in thread
From: Ibrahim_Altahan @ 2002-06-20 12:09 UTC (permalink / raw)


Good morning every-one,
Our application on ES40 with Tru64 5.0A sometimes print form feed in the
beginning of the print job.  Someone from this mailing list suggeted to use
sed script command line.  It sounds good and I tried it, but I could not
get sed command to delete form feed (^L) .   Is there anyone can help me
here on how to delete the form feed from the print job.

Thank you in advance,
Ibrahim.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-20 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-21  3:24 sed question Warren, John H.
  -- strict thread matches above, loose matches on Subject: below --
2002-06-20 12:09 Ibrahim_Altahan
1997-10-09  7:25 Dan Hubbard

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