I am trying to check the content in a number of files. When I wrote:
n=`ls -lth run* | wc -l`
for i in {1..${n}}
do
echo $i # my job is chk inner content, here is just a case
done
It gives only one value:
1..210
What I want is:
1
2
3
4
....
209
210
Does anyone know how to revise the script?