![]() |
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 |
| Problem with changing directory and subdirectories to read only | lalelle | Shell Programming and Scripting | 5 | 08-22-2007 08:49 AM |
| Help Help Help in recursion | murtaza | Shell Programming and Scripting | 6 | 03-29-2007 10:26 AM |
| A Question On Recursion In Ksh | marlonus999 | Shell Programming and Scripting | 1 | 01-11-2007 07:09 AM |
| allow recursion on dns server? | xnightcrawl | UNIX for Advanced & Expert Users | 1 | 03-29-2006 10:36 AM |
| recursion | gsjf | Shell Programming and Scripting | 1 | 08-26-2002 12:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem with recursion in subdirectories
Hello !
I need some help with my simple bash script. This script removes all files ( with name given in $1 ) in current dir and subdirectories . The problem is with first loop in the script ( for file in * ; do ) . When I run the sript in my home directory this script display sometimes( probably special directories ) strange massage like : " [: 31 : (d.) .png : undexpected operator " . But When I write this loop like this : " for file in $( ls $dir ) " the sript working perfectly ( but slow) . How to remove the strange message ? Paweł Łepko Last edited by scotty_123; 03-11-2007 at 05:53 AM.. Reason: to hide code |
| Bookmarks |
| Tags |
| linux, ubuntu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|