Sed Command : Line Start with
Hi,
I need to append to previous line all the line not starting by 2005, here is a example :
2005abcdefghij .....
1234567 ....
2005abcdefghij .....
The result should be
2005abcdefghij ..... 1234567
2005abcdefghij .....
Apparently, sed command could help for that :
sed -e :a -e '/$!N;s/\N2005/ /;ta' -e ...
But I don't know exactly how to do that ...
Please help !
Tks
|