Sed question

Oliver Marshall Oliver.Marshall at
Fri Sep 23 11:37:09 UTC 2011

Hi chaps,

Can you help me with a sed command? I have a string as follows;

FileVersion:     14.0.4756.1000

And I want to remove everything before the 1, leaving;


I thought that the following should do it but it doesn't appear to work. Any ideas what I should be using?

sed "/^FileVersion: */!d; s///;q"

(This is using SED for windows, but as far as I can see the syntax is the same).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list