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 > Shell Programming and Scripting
.
google unix.com



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
df, grep, wild card itik AIX 2 01-24-2008 10:41 AM
wild card & regular expressions eerener UNIX for Dummies Questions & Answers 1 10-01-2007 12:04 AM
How do I pass a wild card as an argument eja UNIX for Dummies Questions & Answers 2 03-28-2007 02:03 PM
ls and wild card - Should be simple! GNMIKE UNIX for Dummies Questions & Answers 2 10-13-2005 07:41 AM
using if with wild card patterns rooh UNIX for Dummies Questions & Answers 1 05-18-2002 07:15 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-12-2007
braindrain braindrain is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 67
Exclamation Wild card in find perm

Hi,
Is there a way to use find command to list the directories for certain permissions. I know we can use
Code:
find . -type d -perm nnn
, where nnn is the permission number . However I wold like to know if I wanna search for wild card permissions i.e 75* / 7* / 55* , as i do not know the actual permission but i know a part of it.

So is it possible to do with 'find' command ?

Appreciate any inputs
Brian
  #2 (permalink)  
Old 04-12-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
Code:
find . -type d -perm -nnn
for the three examples you gave:

Code:
find . -type d -perm -750
Code:
find . -type d -perm -700
Code:
find . -type d -perm -550
Closed Thread

Bookmarks

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 05:02 AM.


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