tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:deleting parts of a textrow
@ 1998-07-01  5:54 Willig Reimund
  0 siblings, 0 replies; only message in thread
From: Willig Reimund @ 1998-07-01  5:54 UTC (permalink / raw)
  To: tru64-unix-managers

Hallo again,
thank you all for your help. As usual there a many ways leading towards
rome!

here are some of them:

1. sed -e 's/(.*$//'  <input >output

2. cut -d"(" -f1 work > newfile


3. very nice answer from Serge Munhoven:
sed -e 's/(.*$//'
Where:
 - 's' =3D substitute
 - '/old/new/' =3D patterns for substitution
 - old=3D=3D'(.*$' =3D something starting with '(', followed by any =
character
'.',
                   in fact as many as you like '*', up to the end of the
line
                   '$' (not required strictly)
 - new=3D=3D'' =3D nothing

but anyway, thanks to all a lot!





mit freundlichen Gr=FC=DFen
     Reimund Willig
willig.reimund@gdr.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-07-01  5:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-01  5:54 SUMMARY:deleting parts of a textrow Willig Reimund

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