![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Switch to DST 2007 --- How Did It Go? | Perderabo | What's on Your Mind? | 6 | 03-14-2007 11:18 PM |
| Switch | abey | High Level Programming | 12 | 06-27-2006 08:11 PM |
| switch from csh to ksh | veeracer | Shell Programming and Scripting | 8 | 11-05-2004 02:13 PM |
| switch from csh to ksh | veeracer | UNIX for Dummies Questions & Answers | 1 | 11-03-2004 06:28 PM |
| can you switch | neer45 | Shell Programming and Scripting | 3 | 12-05-2001 08:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
-o switch in find
Hello all
I'm experimenting with the use of the -prune action and I've encountered some confusing behaviour when using the -o option. Can't find anything specific in the man page. If I have a directory within my current directory called testlink and I run:- find . -name testlink -prune I get what I would expect - the name of the directory, but none of the contents, since the -prune switch has prevented the command descending. However, if I run:- find . -name testlink -prune -o -print Then all other files/directories in the current one are displayed, but not the testlink directory. My understanding is that the -o option is a 'short-circuit' OR, in which case, having returned true with the left-hand expression, should the -print action be performed? Also, shouldn't the testlink directory be displayed? I'm using SunOS 5.5.1, using KSH. Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|