[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] command fails thru xargs but succeeds from shell prompt
- Subject: [ale] command fails thru xargs but succeeds from shell prompt
- From: tim at cliftonfarm.org (Tim Watts)
- Date: Sat, 29 Jan 2011 15:24:47 -0500
I'm trying to move some files. When I try it using xargs it fails but
when I try the exact same command at the shell prompt that xargs echoes
it succeeds.
Here's the command:
$ find Video/* -maxdepth 0 -type d -printf "\"%p\"\n" | xargs -tn1
-I"{}" mv -v \"{}\" /alt/video/
Here's what happens when I run it:
mv -v "Video/Weeds - Season 1" /alt/video/
mv: cannot stat `"Video/Weeds - Season 1"': No such file or directory
...
But when I just run the mv command it succeeds. What's going on here?