Copy specific number of file from multiple files
Step1. Go to the source directory
Step 2. Execute the below command.
Step1. Go to the source directory
Step 2. Execute the below command.
mv `ls -p | grep -v / | tail -10` <destination dir>
Note: where 10 is the number of files.
-----------------------------------------------------------------------------------------------------------
Comments
Post a Comment