I want to extract some data from files minimumThickness*.k and want to put it in the file results.txt. The file mimimumThickness*.k has only double values in the first line.
档案中最低数量为1至100份。
mimimumThickness1.k
mimimumThickness2.k
mimimumThickness3.k
. . .
. . .
mimimumThickness100.k
我在指挥下这样做,但并非成功。
sed -n /^[0-9.]*$/w results.txt minimumThickness*.k
我也可以使用
for loop of i over 1 to hundred
thickness=´cat minimumThickness$i.k | {print $1} | bc`
echo $thickness
thickess >> results.txt
恳请我 problem笑或建议我更妥善地利用ed。 它赞赏任何精彩的方法。
最好。