On Thu, Jun 5, 2008 at 1:07 AM, fooler mail <[EMAIL PROTECTED]> wrote: > On 6/4/08, Ambrosio Berdijo <[EMAIL PROTECTED]> wrote: >> >> or "find . -type f -print" > > you still have to extract the filename from the output above as what > the original poster wanted to do...
Ludwig wrote: | I have a script that needs to get a list of regular files only (This means excluding | directories and symbolic links). So, the find above would be correct... almost. Ludwig also mentions that he needs to handle filenames with whitespaces, so instead of a '-print', a '-print0' would be needed: $ find /path -type -f -print0 | xargs -0 some-command-to-process-list -- Zak B. Elep || http://zakame.spunge.org [EMAIL PROTECTED] || [EMAIL PROTECTED] || [EMAIL PROTECTED] 1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph