[Centos] help with xargs and mv

Wed Feb 9 19:28:20 UTC 2005
James B. Byrne <ByrneJB at Harte-Lyne.ca>

On 9 Feb 2005 at 19:59, Dag Wieers wrote:

> Please do not add the * in workmv, but add it to the cmdline. Like:
> 
>  xargs -i mv ./mqueue/*'{}' ./mqueue/offline
> 
> The quotes around {} escapes the wildcard, so it loses its
> special meaning. I would used ?? (or {df,qf}) instead of *, but
> it makes no big difference. 

Ok, I cut out the leading '*' from the work file and used the 
following command:

# cat workmid | xargs -i mv ./mqueue/*'{}' ./mqueue/offline
mv: cannot stat `./mqueue/*j18IrbIn002131': No such file or 
directory

#ll ./mqueue/*j18IrbIn002131
-rw-------	1 root	root		1150 Feb  8 13:53 ./mqueue/dfj18IrbIn002131
-rw-------	1 root	smmsp	1817 Feb  8 13:54 ./mqueue/qfj18IrbIn002131
#

Now what is wrong?

Regards,
Jim

--   
     *** e-mail is not a secure channel ***
mailto:byrnejb.<token>@harte-lyne.ca
James B. Byrne                Harte & Lyne Limited
vox: +1 905 561 1241          9 Brockley Drive
fax: +1 905 561 0757          Hamilton, Ontario
<token> = hal                 Canada L8E 3C3