![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Not able to understand what's do the statement | div_Neev | Shell Programming and Scripting | 1 | 02-20-2008 01:46 AM |
| perl - understand process status and continue the code execution | sysgate | Shell Programming and Scripting | 2 | 01-04-2008 05:23 AM |
| can't understand this at all. | severndigital | UNIX for Dummies Questions & Answers | 4 | 02-21-2007 08:21 AM |
| can't understand | BoyArcher | UNIX for Dummies Questions & Answers | 5 | 03-14-2006 05:36 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Code Understand ?
Hey,
Could you explain me what this code is doing ? For example: Code:
$i has value 9
$1 is the name of the file say FILEBkUp
while [ "$i" != "1" ]
do
if [ -f $1.`/bin/expr $i - 1` ]
then
mv -f $1.`/bin/expr $i - 1` $1.$i
fi
i=`/bin/expr $i - 1`
done
Varun |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
I got it. Thanks a lot ! VarunGupta |
|||
| Google UNIX.COM |