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

Geoffrey esoteric at 3times25.net
Fri Mar 17 08:39:27 EST 2006


Joe Knapka wrote:
> Hi Courtney,
> 
> This worked for me just now, to interactively
> remove files modified on March 15:
> 
> rm -i $(ls -l | grep 'Mar 15' | cut -d ' ' -f 9)

rm -i $(ls -l |awk '/Mar 15/ {print $NF}'

Will save you a WHOLE pipe and a process!

Be aware that file names with spaces in them will screw up your efforts. :(

-- 
Until later, Geoffrey



More information about the Ale mailing list