I have a group of files, all named "August x, 2010" where x is a
numeral.  I want to move them as a group into a directory. I know how
to use mv to do it one at a time, but there's got to be a
less labor-intensive way. I have searched the man and info pages for
mv, looking for the phrase "multiple filenames", searched a hard-copy
reference manual, looked on Ubuntu forums: nothing. I tried perl-like
regular expressions but apparently mv does not accept .* as a
wildcard. See below (note that "August, 2010", with no date, is the
name of a directory):

>$ ls
>
>August, 2010         August 29, 2010     August 5, 2010.odt
>August 25, 2010.odt  August 30, 2010
>August 26, 2010.odt  August 31, 2010     September, 2010
>August 27, 2010.odt  August 4, 2010.odt
>
>$ mv August\ .*,\ 2010 August\,\ 2010/
>
>mv: cannot stat `August .*, 2010': No such file or directory

I googled "passing multiple file names to mv" and found a shell script
that may solve a related problem (see 
http://aplawrence.com/SCOFAQ/FAQ_scotec1rename.html),
but am still stuck. Hints?

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to