1755962 Members
5338 Online
108839 Solutions
New Discussion юеВ

Command to MV files

 
Prabhi
Advisor

Command to MV files

Files are with .xls extention in the directory needs to move all this file to another directory
5 REPLIES 5
Kapil Jha
Honored Contributor

Re: Command to MV files

mv *.xls new_destination

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Prabhi
Advisor

Re: Command to MV files

Thanks
Johnson Punniyalingam
Honored Contributor

Re: Command to MV files

>>Files are with .xls extention in the directory needs to move all this file to another directory<<

You can use (cp ) command (man cp) -> more information

# cd /folder_Files are with .xls extention

# ls -l *.xls* -> list files verfiy and than proceed.

# cp -p *.xls* /another directory
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Command to MV files

oops" sorry for wrong understanding, change cp command to mv

# mv *.xls* /another directory
Problems are common to all, but attitude makes the difference
Kranti Mahmud
Honored Contributor

Re: Command to MV files

Hi Prabhi,

U can move all the .xls files to a new directory as per your desire with the below command:

mv *.xls new_location

Or, u can copy all of them to a new location with the below command:

copy *.xls new_location

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!