On 1/12/2011 3:09 PM, Bob Proulx wrote:
This also fails:
find /somewhere -print | xargs basename
Why did that fail? Are you also getting an error message from find?
[jblaine@new-host src]$ find /home/jblaine -mtime -1 -print
/home/jblaine
/home/jblaine/.gconf
/home/jblaine/.gconf/apps
/home/jblaine/.gconf/apps/panel/applets/clock/prefs
/home/jblaine/.gconf/apps/panel/applets/clock/prefs/%gconf.xml
/home/jblaine/.gconf/apps/panel/applets/workspace_switcher/prefs
/home/jblaine/.gconf/apps/panel/applets/workspace_switcher/prefs/%gconf.xml
/home/jblaine/.gconf/apps/panel/applets/window_list/prefs
/home/jblaine/.gconf/apps/panel/applets/window_list/prefs/%gconf.xml
/home/jblaine/.gconf/apps/puplet
/home/jblaine/.gconf/apps/puplet/%gconf.xml
^C
[jblaine@new-host src]$ find /home/jblaine -mtime -1 -print | xargs
/bin/basename
/bin/basename: extra operand `/home/jblaine/.gconf/apps'
Try `/bin/basename --help' for more information.
/bin/basename: extra operand `/home/jblaine/coreutils/lib/cloexec.c'
Try `/bin/basename --help' for more information.
/bin/basename: extra operand
`/home/jblaine/coreutils/gnulib/modules/unicase/u8-is-lowercase-tests'
Try `/bin/basename --help' for more information.
/bin/basename: extra operand
`/home/jblaine/coreutils/gnulib/lib/xgetdomainname.c'
Try `/bin/basename --help' for more information.
/bin/basename: extra operand
`/home/jblaine/coreutils/gnulib/tests/unictype/test-digit.c'
Try `/bin/basename --help' for more information.
^C