|
From: | Dustin Sallings |
Subject: | Re: [Gnu-arch-users] Re: File naming conventions |
Date: | Mon, 18 Oct 2004 17:37:16 -0700 |
On Oct 18, 2004, at 17:26, Miles Bader wrote:
On Mon, Oct 18, 2004 at 05:01:39PM -0700, Dustin Sallings wrote:desktop:~/prog/p4gw/cms 3011> ctags `tla inventory -s` /usr/local/bin/ctags: Argument list too long. I suppose since this version of ctags has an option to avoid clobbering the tags file on a second invocation, I can usexargs...unless there's whitespace or something in a filename somewhere.Slightly off-topic, but xargs doesn't have any problem with typical whitespace in file names; the main issue is _newlines_ in filenames.
dustin2wti:/tmp/x 613% ll total 16 -rw------- 1 dustin wheel 18 18 Oct 17:36 file one -rw------- 1 dustin wheel 18 18 Oct 17:36 filetwo 0.000u 0.000s 0:00.04 0.0% 0+0k 0+0io 0pf+0w dustin2wti:/tmp/x 614% cat * Hi, I'm file one! Hi, I'm file two! 0.010u 0.010s 0:00.06 33.3% 0+0k 0+0io 0pf+0w dustin2wti:/tmp/x 615% find file* | xargs cat cat: file: No such file or directory cat: one: No such file or directory Hi, I'm file two! 0.000u 0.020s 0:00.08 25.0% 0+0k 0+0io 0pf+0w dustin2wti:/tmp/x 616% find file* -print0 | xargs -0 cat Hi, I'm file one! Hi, I'm file two! 0.030u 0.000s 0:00.07 42.8% 0+0k 0+0io 0pf+0w My xargs disagrees with you. -- Dustin Sallings
[Prev in Thread] | Current Thread | [Next in Thread] |