On Sun, 31 Aug 2003 10:20:46 +1000 John Habermann wrote: > I have tried things like the following: > > sed -e 's/^w.*\s//' > log > > thinking that it would delete from the beginning of the line to the > first white space but it deletes all matched expressions.
(man sed, man grep) It seems you mean 's/^\w*\s//' Unfortunately, it seems sed doesn't understand the \w and \s escape sequences, unlike grep. Better try: sed 's/^[[:alnum:]]*[[:space:]]*//' -- Carlos Sousa http://vbc.dyndns.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]