![]() |
|
|
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 In Shell Script | satyakide | Shell Programming and Scripting | 11 | 09-24-2007 11:00 AM |
| Help! Problem with Shell Script. | pektl | Shell Programming and Scripting | 7 | 05-29-2006 06:08 AM |
| Problem with SU or SSH in shell script | sravanp | UNIX for Dummies Questions & Answers | 2 | 01-24-2006 12:00 PM |
| Shell Script problem | bnohifi | Shell Programming and Scripting | 1 | 07-07-2005 03:02 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
problem in shell script
I am bit new to shell scripting. Is there any body who can help me
There are n number of files present in folder named like (/girish/1) ),(/girish/2) …..so on, till (/girish/24) folder. I have to delete all the file from all these folders. I have to pass '/girish' path from the file name 'para' which is present in / directory. I wrote exec</para read x i=1 while test i -le 24 do cd $x/$i rm * --------------> till here ever thing is working fine i=`expr $i + 1` done but when I incrment the value of i it must remove the files from /girish/2 , /girish/3 .. so on but it is not happening.Kindly tell me where I am wrong |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|