[ale] THANKS to all who replied to "ls -rt | rm -i" problem, BUT...ATTN:JoeKnapka

Paul Cartwright paul_tbot at pcartwright.com
Sun Mar 19 08:20:58 EST 2006


On Sun March 19 2006 7:54 am, Geoffrey wrote:
> I don't believe that's going to work, because cut does not expand
> the single delimiter character to multiples. ?That is if you have 3
> spaces together, cut will have the first space as a field, the 2nd
> as a delimiter the third as the next field.
>
I agree that fields won't do it, but cutting by character will, maybe?


> awk is the toy you want:
>
> rm -i $(ls -l | awk '/Mar 15/ {print $NF})

I'm not going to play around with awk and rm :)

-- 
Paul Cartwright
Registered Linux user # 367800 



More information about the Ale mailing list