[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed - Problem



Am Mittwoch 31 August 2005 09:41 schrieb Sven Gehr:

[sed-Wunsch]

> echo @@+49621 4829/399@@bla bla bla|sed ..... erhalte ich:
> 00496214829399bla bla bla

Also wenn nichts gegen mehrere Ausdrücke spricht probier doch mal:

's/.*@@([^@]*)@@.*/\1/g'
's/\s*+/00/'
's/[^0-9]//g'

also z.B. mit

sed -r -e 's/.*@@([^@]*)@@.*/\1/g' -e 's/\s*+/00/' -e 's/[^0-9]//g'

Das tut hier.

Gruß Chris

-- 
A: because it distrupts the normal process of thought
Q: why is top posting frowned upon



Reply to: