script help

R Kimber richardkimber at btinternet.com
Tue Aug 24 12:01:33 UTC 2010


On Mon, 23 Aug 2010 10:24:54 -0400
Tom H wrote:

> Good answer except for the unnecessary "cat".
> 
> $ egrep "Antivirus Pattern" testfile | cut -d " " -f 5 | cut -c 2- | tr
> -d  '.'

But doesn't this assume that the string is on a line on its own with no
leading or trailing spaces? Or do we know this?

- Richard.
-- 
Richard Kimber
Political Science Resources
http://www.PoliticsResources.net/




More information about the ubuntu-users mailing list