mv multiple files from one directory to another directory by renaming them
in UNIX
i have files in a directory with *.xml.inuse i want to move all of them to
destination directory by renaming to *.xml Tried with the below code but
didn't work
cd sourcedirectory/
for file in *xml.inuse
do
mv "${file}" ../destinationdirectory/"${file}.xml"
as it created destination files as *.xml.inuse.xml
No comments:
Post a Comment