Date: Thu, 14 Feb 2013 18:44:43 -0700 From: Chad Perrin <perrin@apotheon.com> To: freebsd-questions@freebsd.org Subject: Re: Fun Scripting Problem Message-ID: <20130215014443.GA27962@hemlock.hydra> In-Reply-To: <201302132113.r1DLD6DX003167@mail.r-bonomi.com> References: <511BDB13.3060005@tundraware.com> <201302132113.r1DLD6DX003167@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Feb 13, 2013 at 03:13:06PM -0600, Robert Bonomi wrote:
>=20
> here's a one-liner:
> rm ` \
> stat -f "%SB %B %N" * \
> | sort -k5nr \
> | cut -c1-7,17-20,32- \
> | awk 'BEGIN {a=3D"";b=3D0;c=3D0} $1=3D=3Da && $2=3D=3Db && $3=3Dc {prin=
t $4;}{a=3D$1;b=3D$2;c=3D$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.
--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
--cNdxnHkX5QqsyA0e
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlEdkwsACgkQ9mn/Pj01uKVxFACguY8JdmjmOBd+HZ/BK7I6qCrA
ra8AoKfy8oz1U+p4EpGu5eOpX4yEk869
=FhTA
-----END PGP SIGNATURE-----
--cNdxnHkX5QqsyA0e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130215014443.GA27962>
