[mythtv-users] make a copy of .nuv as .mpg

Chris Petersen lists at forevermore.net
Sat Oct 16 17:27:55 UTC 2004


> I tried
> cp /storage/TV/recording/*.nuv /storage/Videos/*.mpg
> and I am getting this error message:
> cp: `/storage/Videos/*.mpg': specified destination directory does not exist

That's because when copying multiple files, the destination must be a 
directory..  the * is expanded by the shell, not by cp..  anyway, you 
want something like:

for file in /storage/TV/recording/*.nuv; do
   NEW=`basename "$file" .nuv"
   cp "$file" "/storage/Videos/$NEW.mpg"
done

-Chris


More information about the mythtv-users mailing list