![]() |
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 Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| c shell script help with find | bigboizvince | Shell Programming and Scripting | 1 | 03-25-2008 03:49 PM |
| find command from shell scipt (ksh) problem | kodermanna | UNIX for Advanced & Expert Users | 6 | 02-06-2008 05:40 AM |
| Problem with find command in C-shell | dhanamurthy | UNIX for Advanced & Expert Users | 3 | 11-30-2006 05:16 AM |
| UNIX Find command in Borne Shell | marshaferry | Shell Programming and Scripting | 1 | 04-06-2006 12:47 PM |
| Find Command In Script | kdreaves | SUN Solaris | 3 | 01-21-2004 11:28 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
find command from a shell script
Hi experts,
I have a shell script (korn shell on aix) where I am giving find command with file options which are read from a configuration file. For some reason I am getting an error find: 0652-017. I have put set -x in the shell script and the command looks okay. If I cut it and paste it in the dollar prompt the command works. I have spent so many hours trying to find out the problem, but no success. Here is the output from the shell + find /tmp -type f -a ! \( -name "*.Z" -o -name "*.gz" -o -name "DUMMY_*" -o -name "testfile_160108.gz" \) -a -name "testfile_1*" -a -mtime +0 -print find: 0652-017 ! \( -name "*.Z" -o -name "*.gz" -o -name "DUMMY_*" -o -name "testfile_160108.gz" \) is not a valid option. any idea why it works when pasted on the dollar prompt but not from within a shell ? |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|