
15 Aug
2005
15 Aug
'05
1:57 p.m.
* Oliver Jones <oliver(a)deeperdesign.com> [2005-08-15 15:35]:
Or if you just want a delimited filename string then this:
[oliver] mobility:~/1$ find . -name "file*" -printf "'%f'\n" 'file 3' 'file 2' 'file 1'
Except that will fall over on filenames with spaces in them. You want to pipe `find ... -print0` to something, most of the time. (Usually xargs(1). That’s much faster than spawning one process for every single file, too, even for a pretty small number of files.) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>