LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy select files with command line (https://www.linuxquestions.org/questions/linux-newbie-8/copy-select-files-with-command-line-521290/)

Storyman 01-20-2007 07:43 PM

Copy select files with command line
 
What command(s) would I use with the command line if I want to select a subset of files, selected by date modified, and copy that group of files to another directory? Thanks

wjevans_7d1@yahoo.co 01-20-2007 07:59 PM

Use the find command. Say:

man find

and read all about the -exec option.

Hope this helps.

Storyman 01-21-2007 01:35 PM

Looks like that's it, thanks

wjevans_7d1@yahoo.co 01-22-2007 04:49 AM

Remember that the -exec option requires a free-standing semicolon at the end of its operand, so that the find command can, um, find the end of that operand. But shells tend to absorb semicolons for their own purposes, so you may wish to "escape" the semicolon; this will cause the shell to pass that semicolon on to the find command, rather than "using" it. Like this:

find . -name '*.cxx' -exec ls -l {} \;

terrorisk 01-22-2007 08:52 AM

thanx bro
nice info
is't FIND can finding file for mount windows file ??

wjevans_7d1@yahoo.co 01-23-2007 03:35 AM

I don't understand the question. Could you please explain it, maybe using examples?

(Sorry.)


All times are GMT -5. The time now is 01:37 AM.