![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find cmd not working as expected | Vishal123 | Shell Programming and Scripting | 6 | 08-29-2007 02:11 AM |
| #/usr/bin/csh -f not working as expected? | effigy | Shell Programming and Scripting | 4 | 06-05-2006 05:00 PM |
| ls not working as expected within ksh | GNMIKE | Shell Programming and Scripting | 10 | 07-07-2005 07:53 AM |
| awk not working as expected with BIG files ... | videsh77 | Shell Programming and Scripting | 1 | 02-24-2005 04:15 PM |
| which not working as expected | osee | Shell Programming and Scripting | 2 | 09-07-2004 11:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Find command not working as expected
I have a script with a find command using xargs to copy the files found to another directory. The find command is finding the appropriate file, but it's not copying. I've checked permissions, and those are all O.K., so I'm not sure what I'm missing. Any help is greatly appreciated.
This is the command I'm running: find /srcdir/ . -name '*.txt.gz' -mtime -2 | xargs cp {} /trgtdir/ This is what I see when I run from command line: cp: /srcdir/srcfile.txt.gz: Error 0 So, it's finding the correct file, but there is nothing being copied in the /trgtdir/. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|