Numberation from 1 to n
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
023af993ac
commit
314f2a37b4
@ -2,9 +2,9 @@
|
|||||||
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
|
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
|
||||||
LEN=${#LOGS[@]}
|
LEN=${#LOGS[@]}
|
||||||
|
|
||||||
for (( i=1; i<$LEN; i++ ));
|
for (( i=0; i<$LEN; i++ ));
|
||||||
do
|
do
|
||||||
echo "$i - ${LOGS[$i-1]}"
|
echo "$(( $i + 1 )) - ${LOGS[$i]}"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user