Wednesday, August 10, 2011

Loop in KSH for range of values to list hdisks size

This example shows up how to create command in AIX using range of numbers in loop:

n=12
while [[ $n -le 21 ]]; do
bootinfo -s hdisk${n}
((n+=1))
done

No comments:

Post a Comment