-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Nov 01, 2006 at 05:39:06PM +0000, michael wrote: > Anybody got a quick solution to how to use xargs in corp with, say, find > and ls when there's more chars than xarg (see -s) likes for a single > run? > > eg if I run > find . -name 'me*' -print | xargs ls -altd > and find gives more than circa 20k chars then it appears that ls is run > multiple times with the output concat-ed ie you get groups of date > sorted files rather than a single list of date sorted files... (giving > xargs the '-x' aborts the above cmd indicating find returns more chars > than xargs can handle on a single run)... > > ta, michael
find . -name 'me*' -print | while read line; do ls -altd "$line"; done is how I would do it. Not efficient, but gets the jobs done. Kev - -- | .''`. == Debian GNU/Linux == | my web site: | | : :' : The Universal | debian.home.pipeline.com | | `. `' Operating System | go to counter.li.org and | | `- http://www.debian.org/ | be counted! #238656 | | my keysever: pgp.mit.edu | my NPO: cfsg.org | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFSN9ov8UcC1qRZVMRAu5fAJ91TfW/vrO4inf6eu/gBD3lsmHC+wCgiEQ8 d1EknX0lyqTCe2ycGMxXp10= =B+xZ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]