1

I have mounted an image and have used the find command to show all file types found on the image

~/mounted $ find . -type f -exec file {} \; 

I know how to direct the output of the command to a .txt document but I cannot figure out how to copy the files I have found to another directory.

1
  • What do you mean? All files? Or only those of a given type? If so, which type? Commented Oct 27, 2013 at 14:46

1 Answer 1

2

Instead of running the file utility use the same technique with cp

$ find . -type f -exec cp {} /destination/path \; 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.