Sed question
Oliver Marshall
Oliver.Marshall at g2support.com
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;
14.0.4756.1000
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).
Olly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110923/16a964b7/attachment.html>
More information about the ubuntu-users
mailing list