[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coreutils] basename/dirname can't handle stdin?
From: |
Jeff Blaine |
Subject: |
Re: [coreutils] basename/dirname can't handle stdin? |
Date: |
Thu, 13 Jan 2011 18:30:23 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
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
- Re: [coreutils] basename/dirname can't handle stdin?, (continued)
- Re: [coreutils] basename/dirname can't handle stdin?, Eric Blake, 2011/01/13
- Re: [coreutils] basename/dirname can't handle stdin?, Jeff Blaine, 2011/01/13
- Re: [coreutils] basename/dirname can't handle stdin?, Jeff Blaine, 2011/01/13
- Re: [coreutils] basename/dirname can't handle stdin?, Eric Blake, 2011/01/13
- [coreutils] Re: basename/dirname can't handle stdin?, Andreas Schwab, 2011/01/14
- Re: [coreutils] basename/dirname can't handle stdin?, Eric Blake, 2011/01/13
- Re: [coreutils] basename/dirname can't handle stdin?, Pádraig Brady, 2011/01/13
- Re: [coreutils] basename/dirname can't handle stdin?, Eric Blake, 2011/01/13
- Re: [coreutils] basename/dirname can't handle stdin?, Pádraig Brady, 2011/01/13
Re: [coreutils] basename/dirname can't handle stdin?, Bob Proulx, 2011/01/12
- Re: [coreutils] basename/dirname can't handle stdin?,
Jeff Blaine <=