I have a file named exfile(4 numbers per line):

```
200807 0 96 200807

```

I want to read this file and use all the 4 numbers. 

My Shell script is:

```
while read line
do
    echo ${line}
    set ${line}
    echo "${1} ${2} ${3} ${4}"
    declare -i start
    declare -i end
    start=`expr ${2} / 1`
    end=`expr ${3} / 1`
    for i in {${start}..${end}}
    do
        picnum=`printf "%03d" $i`
        echo ${picnum}
    done
done < exfile

```

The error is `printf: {0..96}: invalid number`

if you delete the lines:

```
declare -i start
declare -i end
start=`expr ${2} / 1`
end=`expr ${3} / 1`

```

The error is the same. I add these lines to turn strings into integers.

Any idea why? Thanks a lot.

=============================================

Updated:The following code works:

```
while read line
do
    echo ${line}
    set ${line}
    echo "${1} ${2} ${3} ${4}"
    for i in $(seq ${2} ${3})
    do
        picnum=`printf "%03d" $i`
        echo ${picnum}
    done
done < exfile

```