It was a matter of putting everything in a loop
#!/bin/bash
f1="goy 45 1 1"
file="/home/con/gen"
i=0
while read line; do
echo $f1 > $i
echo $line >> $i
cat $i
./perm
i=$(($i+1))
done <filename
It was just understanding how the loop works. It was starring me in the face. Thanks
Last edited by iconig; 07-14-2012 at 07:49 AM.
|