![]() |
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 |
| List certain file in a folder and make list | andrisetia | UNIX for Dummies Questions & Answers | 1 | 09-15-2008 02:21 PM |
| match string in a file to file in a directory | Jae | Shell Programming and Scripting | 5 | 01-19-2008 01:11 AM |
| How to match a logical partition to a file | garry | AIX | 1 | 09-26-2007 10:52 AM |
| List files that do not match the search pattern | olapxpert | UNIX for Dummies Questions & Answers | 7 | 04-14-2005 04:49 PM |
| List files that do not match the search pattern | olapxpert | IP Networking | 1 | 04-14-2005 03:37 PM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Hi ALL,
I am making a script that search all then worldwriteable dir in documentroot.I have manage to find all the dir now i want to match each file extension in worldwriteable against a list of array which contain file like php html etc,if i find any file then print dirname. Dont see to get any idea how i do that.i past my code for reiew and comments #!/bin/bash list[0]="php" list[1]="html" Docroot[0]="/var/www/html/" export IFS=$'\n' # Loop through our array. for x in ${Docroot[@]} do # Find all directories & subdirectories for i in $(find $x -type d -perm /o=w ) do echo $i done done This is a small output /var/www/html/test3 /var/www/html/test3/abc /var/www/html/test3/gallery /var/www/html/test/abc |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|