All pastes #758382 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-02 04:27 UTC
rendered paste body
#!/bin/bash
#
file[0]="file1"
file[1]="file2"
file[2]="file3"
file[3]="file4"
file[4]="file5"
file[5]="file6"
file[6]="file7"
file[7]="file8"
file[8]="file9"
file[9]="file10"
if [ -r file1 ]; then
echo "the file is read only and it exists"
else
echo "the file is not read only"
fi
echo "$?"
while (($? == true))
do echo "${cat file[0]}"
done
#End of Script