LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "for and while looping" questions (https://www.linuxquestions.org/questions/linux-newbie-8/for-and-while-looping-questions-4175412550/)

iconig 07-12-2012 05:13 PM

Thanks guys, I have figured it out, my program is now running. You guys are great

grail 07-12-2012 09:09 PM

And would you like to share your solution so others may follow and learn from your experience?

iconig 07-14-2012 08:46 AM

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


All times are GMT -5. The time now is 12:02 AM.