![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| On CEP Maturity and the Gartner Hype Cycle | iBot | Complex Event Processing RSS News | 0 | 06-01-2008 08:30 PM |
| wildcard in a if cycle | elionba82 | Shell Programming and Scripting | 2 | 04-18-2008 05:25 AM |
| CEP vs the hype cycle | iBot | Complex Event Processing RSS News | 0 | 02-05-2008 02:20 PM |
| Stopping a command during the cycle | chapmana | UNIX for Dummies Questions & Answers | 7 | 11-25-2006 01:08 PM |
| shell cycle | mape | Shell Programming and Scripting | 2 | 07-14-2006 12:12 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
For cycle
Hello,
I have files in a dir. I what to create a FOR cycle that will do this FOR <condition> do file=`ls <directory> | tail -1` echo $file mv -f $file <another dir> done What I want to now is what should I put in the <condition>. The condition I want is that the FOR will execute until there is no more files in the directory Thanks |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
mv -f /dir1/* /dir2 |