Skip to content

How to copy files containing the given character using terminal in Linux Mint?

In Linux Mint, I have a directory that has many files and I want to copy files that contain x in their filename and paste them into other destination.

How can I do it using a terminal?



Go to the directory that contains all of your files, then try this one. this commnad can help you.

find . -name '*x*' -exec cp "{}" YourDestination  ;

replace YourDestination wtih every where you want.

10 People found this is helpful