I want to copy all the jpg files from a directory to another directory. How do i make to copy all files finishing in jpg?
Asked
Active
Viewed 2,058 times
1 Answers
0
cp {SourceDirectory}/*.jpg {DestinationDirectory}/.
Where {directory} is your from and to directories.
You could also
cd {SourceDirectory}
cp *.jpg {DestinationDirectory}/.
Note that Linux is case sensitive so *.jpg is different than *.JPG .
It's also possible to recurse through subdirectories with a -r parameter, but be careful with that.
user10216038
- 363