The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-23-2008
kodermanna kodermanna is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 11
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0