[plug] Text Filtering

Leon Blackwell leon at lostrealm.com
Tue Mar 19 16:26:00 WST 2002


On Tue, Mar 19, 2002 at 04:15:09PM +0800, 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

There are lots of ways:

1)  Remove all the odd numnbered lines
2)  Hire a monkey to remove all the odd numbered lines
3)  Scream "alacazam!" at the top of your lungs and wait...
4)  Hire a whole lot of monkeys and get yourself some typewriters

or...

5)  Use 'ls -1' instead of 'ls -l'

:)


Of course, if you really need to parse the filenames from the original
(for whatever odd reason), you might want to take a look at awk.


-- 
 Leon Blackwell                | For every complex problem, there is a
 http://www.lostrealm.com/     | solution that is simple, neat, and
 jabber:Lionfire at lostrealm.com | wrong.
                               | -- Henry Louis Mencken



More information about the plug mailing list