Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Nov 25 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Nov 25

The simplest way I know of is using the find command. Find command has a -exec
option for directing the execution of a command on the find 'list' and looks
something like this:

find ./ -name test\* -exec cp {} /home/kevin/test/me \;

this is to find all of the commands with "test" in the name and copy to a
directory.

The syntax can be a little tricky but I have seen this command used a lot in
cases just like yours.

Share: 

 
 
Didn't find what you were looking for? Find more on Put some order into a collection of documents Or get search suggestion and latest updates.


Tagged: