tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Willig Reimund <Willig.Reimund () gdr ! de>
To: tru64-unix-managers
Subject: SUMMARY:deleting parts of a textrow
Date: Wed, 01 Jul 1998 05:54:16 +0000	[thread overview]
Message-ID: <96078715811408.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1998-07-01  5:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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