SUMMARY:deleting parts of a textrow

From: Willig Reimund <Willig.Reimund_at_gdr.de>
Date: Wed, 01 Jul 1998 07:54:16 +0200

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' = substitute
 - '/old/new/' = patterns for substitution
 - old=='(.*$' = 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=='' = nothing

but anyway, thanks to all a lot!





mit freundlichen Grüßen
     Reimund Willig
willig.reimund_at_gdr.de
Received on Wed Jul 01 1998 - 07:56:05 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT