find path list predicate list error Maurertown Virginia

Address 203 E Main St, Front Royal, VA 22630
Phone (540) 635-7064
Website Link

find path list predicate list error Maurertown, Virginia

The time now is 01:00 PM. Bash 101 Hacks eBook Sed and Awk 101 Hacks eBook Vim 101 Hacks eBook Nagios Core 3 eBook Copyright © 2008–2015 Ramesh Natarajan. gilead View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by gilead 03-28-2006, 06:56 PM #3 hpinto LQ Newbie Registered: Mar 2006 Posts: This may or may not have been done maliciously.

Is there a way I can implement it in another way ? –rbk Dec 4 '13 at 14:27 Try find /opt/sfw -name find -print to see if the admins Join UsClose Perl For You Tuesday, July 19, 2011 find:bad option find: path-list predicate-list error This error happens when the wildcard character in your find command expands. How to prevent Beamer from repeatedly expanding macros in \frametitle when frame-breaking more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info Browse other questions tagged bash shell solaris or ask your own question.

Click Here to join Tek-Tips and talk with other members! Browse other questions tagged find solaris solaris-10 or ask your own question. This usually means that while find was deep in a directory hierarchy doing a time consuming operation, somebody has moved one of the parent directories to another location in the same For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration.

All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. Wrapping it in quotes prevents that. Cancel Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts.The Tek-Tips staff will check this out and take appropriate action. How to get Find command work with a variable containing "*"? 6656 (Programmer) (OP) 14 Aug 06 09:47 Hello guys,I have a problem to pass a variable ($optn) containing quoted wild

Forum Operations by The UNIX and Linux Forums Download your favorite Linux distribution at LQ ISO. Registration on or use of this site constitutes acceptance of our Privacy Policy. What are "desires of the flesh"? file size, 2.

As to yourQuote:to columb,option -name or -mtime is determined by is the expected result return to be excuted:find . -type f -name "*.log"orfind . -type f -mtime +100That's not what I'm quite happy to use an alternative to find if it gets the job done ofc. You may want to check the man for your version of find and see some examples for the supplied syntax. Remove advertisements Sponsored Links rikxik View Public Profile In any case, find stops at this point to avoid traversing parts of the filesystem that it wasn't intended to.

For example: $ find . -not -name '*.txt' ./509edca2-8636-7542-1845-cafd3cab4c39_header.xml ./68d32b32-8638-7542-0e45-8c374f03f56b_header.xml ./mondbfile.sql This command finds all the files and directories which doesnot have .txt at the filename. Join them; it only takes a minute: Sign up find: bad option -printf find: path-list predicate-list shell scripting up vote 0 down vote favorite I've just made a very basic shell thread822-1266390 Forum Search FAQs Links MVPs How to get Find command work with a variable containing "*"? How to decrypt a broken S/MIME message sent by Outlook?

A bullet shot into a door vs. eantoranz Programming 3 08-03-2010 04:51 PM cannot execute the find command as expected ? Error messages sometimes include a filename. Have a look at FAQ219-2884 or FAQ181-2886 RE: How to get Find command work with a variable containing "*"? 6656 (Programmer) (OP) 14 Aug 06 14:05 CODECall your script like

Browse other questions tagged ksh or ask your own question. columb (IS/IT--Management) 14 Aug 06 10:02 Er...There are a number of bugs in your code, but I'll leave those as an excercise.However the codeCODE$2="*.log"find . -name "$2"will work. any error message ? use vs require in perl Use and require both are used to load the modules with slight differences..

Ceci n'est pas une signatureColumb Healy RE: How to get Find command work with a variable containing "*"? Password Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris. Hope This Helps, PH.Want to get great answers to your Tek-Tips questions? exit" read OPTION done bash shell solaris share|improve this question edited Dec 4 '13 at 15:24 user1019830 asked Dec 4 '13 at 14:21 rbk 108129 Older find version on

Consider the possibility that someone else is manipulating the filesystem while find is running. When I execute the find command, I get "find: bad option -not" as shown below. General Sun, SunOS and Sparc related questions also go here. Isn't that more expensive than an elevated system?

first command does not give any error, but does not produce any output into array either. operator to perform inverse matching as shown below. $ find . ! -name '*.txt' ./509edca2-8636-7542-1845-cafd3cab4c39_header.xml ./68d32b32-8638-7542-0e45-8c374f03f56b_header.xml ./mondbfile.sql Tweet >Add your comment If you enjoyed this article, you might also like.. Contact Us Email Me : Use this Contact Form to get in touch me with your comments, questions or suggestions about this site. all , 5.

Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016, Inc. With -name, find will take care of everything, and no potentially large argument list needs to be passed around. –johnLate Apr 20 at 14:49 add a comment| 2 Answers 2 active Not the answer you're looking for? For more examples, refer our earlier article Mommy, I found it! — 15 Practical Linux Find Command Examples Now, execution of the above command in Solaris will fail with the "bad

They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Logical fallacy: X is bad, Y is worse, thus X is not bad Can a Legendary monster ignore a diviner's Portent and choose to pass the save anyway? But the site is now locked down. –jim mcnamara Dec 4 '13 at 15:33 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up A Shadowy Encounter "Rollbacked" or "rolled back" the edit?

You may well be asked questions about your system, and if you compiled the findutils code yourself, you should keep your copy of the build tree around. My answer as currently written does explain the error in your original post, and the solution for it. –Wildcard Apr 19 at 8:14 Thanks that worked! –Dhivya Apr 19 columb (IS/IT--Management) 17 Aug 06 06:26 Going through your code line by lineCODE#!/bin/ksh -x#$1 - name of option#$2 - pattern of filename or age of fileno problems so farCODEoptn=`echo "$1"| tr usage() { echo "enter option again" # ... } # read options while read OPTION; do format="" case $OPTION in 1) format="%n %s bytes\n" ;; 2) format="%n %A\n" ;; 3) format="%n

If you'd like to contribute content, let us know. What is the most expensive item I could buy with £50? Using BASH arrays: #!/bin/bash # initialize your constants fileloc='/var/adm/logs/morelogs' filename='*.user' # create an array with full find command cmd=( find "$fileloc" -type f -prune -name "$filename" -print ) # execute find