Home > Software engineering >  How to copy files containing the given character using terminal in Linux Mint?
How to copy files containing the given character using terminal in Linux Mint?

Time:02-12

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?

CodePudding user response:

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.

  • Related