HP3000-L Archives

February 2005, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"James B. Byrne" <[log in to unmask]>
Reply To:
James B. Byrne
Date:
Tue, 8 Feb 2005 16:06:43 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
I need help with processing a file with xargs.  The file contains a
list of strings each prefixed with an *, one to a line.

*filestring01
*filestring02
...
*filestringnn

I want to match all files in a particular directory based on the
regexp pattern that this creates and move them into another
directory.  My original take on the syntax was this:

cat inputfile | xargs mv /directory/level/one/'{}' \
                         /directory/level/one/two

but this gives an error:
mv: when moving multiple files, last argument must be a directory
Try `mv --help' for more information.

It does not matter if if append a '/' to the target directory or
not.  Does anyone here know what I am doing wrong WRT to the syntax
of the xargs command?

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

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2