[plug] Text Filtering

Leon Brooks leon at brooks.fdns.net
Tue Mar 19 16:31:37 WST 2002


On Tuesday 19 March 2002 16:15, Andrew Barbara wrote:

> How would i make this:
> -rw-rw-r--    1 2220     235        682547 Mar 11 03:54
> vnc-server-3.3.3r2-18.3.i386.rpm
> -rw-rw-r--    1 2220     235         98464 Oct 30 16:53
> webalizer-2.01_09-0.72.i386.rpm
> -rw-rw-r--    1 2220     235        219510 Nov 26 16:06
>  wu-ftpd-2.6.1-20.i386.rpm

> Look like this:
> vnc-server-3.3.3r2-18.3.i386.rpm
> webalizer-2.01_09-0.72.i386.rpm
> wu-ftpd-2.6.1-20.i386.rpm

Pipe it through one of:

    gawk '{ print $9 }'

    sed -e 's/^.* //'

    cut -c57-

...and there's sure to be many other ways (hello, assorted Matts :-)

Cheers; Leon



More information about the plug mailing list