Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2007 18:46:22 GMT
From:      "gs_stoller@juno.com" <gs_stoller@juno.com>
To:        derek@computinginnovations.com, kline@tao.thought.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: awk question
Message-ID:  <20070309.104650.775.601090@webmail22.nyc.untd.com>

next in thread | raw e-mail | index | archive | help
	You are trying to remove the files whose names are given by
		ls -lt | awk '{if ($8 =3D=3D 2006) print $9}';

	If you are in the same directory, or you have full pathnames, you can
do just (and avoid the 'for  do  done' loop)
		rm  $( ls -lt | awk '{if ($8 =3D=3D 2006) print $9}' )
	If this exceeds the maximum length of a line, just use  xargs  also.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070309.104650.775.601090>