|
Hi,
Try this,
sed '/^0/s/ / -/g' filename .
Hi,
Can anybody suggest me how to leave the last line in the substitution.
Requirement is to do substitution in all the lines except the last line.
I tried
sed '!$s/ / -/g' filename ....But its not working ..giving syntax error
Thanks
Penchal
|