[ale] command fails thru xargs but succeeds from shell prompt

Tim Watts tim at cliftonfarm.org
Sat Jan 29 15:24:47 EST 2011


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?




More information about the Ale mailing list