Hi,
sorry for newbie question
can't find how to cut ?
from
1000 2000 word some text1....
100 200 300 word some text2....
10 20 30 abc word some text3....
to
some text1....
some text2....
some text3....
Hi,
sorry for newbie question
can't find how to cut ?
from
1000 2000 word some text1....
100 200 300 word some text2....
10 20 30 abc word some text3....
to
some text1....
some text2....
some text3....
sed 's .*\(word.*\) \1 ' infile
radoulov thnx, but
result :
word some text1....
word some text2....
word some text3....
need
some text1....
some text2....
some text3....
Sorry,
my fault.
sed 's,.*word \(.*\),\1,' infile
thnx twice !
Or:
sed 's/.*word //' file
Regards
... of course
G(awk)
awk 'BEGIN{FS="word "}{print $NF}' file