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