Fun Scripting Problem
Chad Perrin
perrin at apotheon.com
Fri Feb 15 01:51:47 UTC 2013
On Wed, Feb 13, 2013 at 03:13:06PM -0600, Robert Bonomi wrote:
>
> here's a one-liner:
> rm ` \
> stat -f "%SB %B %N" * \
> | sort -k5nr \
> | cut -c1-7,17-20,32- \
> | awk 'BEGIN {a="";b=0;c=0} $1==a && $2==b && $3=c {print $4;}{a=$1;b=$2;c=$3}' \
I'm never comfortable calling something like that a "one-liner". If it
runs over 80 columns of width, that (to me) doesn't really qualify as a
one-liner.
--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20130214/326bf5da/attachment.sig>
More information about the freebsd-questions
mailing list