08/03/01 20:32:55 IgLZSOLf
>>756-757
seqを使ってもエラーが出るので、
Cっぽくやってみました。
aaa.1.txt
aaa.2.txt
aaa.3.txt
を用意して、
------------------
#!/bin/bash
x=3
temp=""
for (( i=1 ; i < $x+1; i++ )); do
cat aaa.$i.txt >> $temp
done
cat $temp
-------------------
./test2.sh: line 5: $temp: ambiguous redirect
./test2.sh: line 5: $temp: ambiguous redirect
./test2.sh: line 5: $temp: ambiguous redirect
マズー(;´Д`)
am・big・u・ous[ mbjus ]
[形]
1 2通り(以上)の解釈を許す
2 (正体の)あいまいな;紛らわしい;はっきりしない, ぼんやりした, もうろうとした, おぼろげな