LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2012, 04:13 PM   #16
iconig
LQ Newbie
 
Registered: May 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled

Thanks guys, I have figured it out, my program is now running. You guys are great
 
Old 07-12-2012, 08:09 PM   #17
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,516

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
And would you like to share your solution so others may follow and learn from your experience?
 
Old 07-14-2012, 07:46 AM   #18
iconig
LQ Newbie
 
Registered: May 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Could someone help me with looping in vb cobrien Programming 9 11-12-2010 08:17 AM
looping images? Cording44 Linux - Newbie 1 05-05-2009 09:34 AM
Help with looping more than 1 variable. hdoyle Linux - Newbie 4 01-22-2009 05:28 AM
Not able to do looping in linux Amey Joshi Linux - Newbie 7 08-13-2008 03:25 AM
login looping plaircpa Slackware 3 10-31-2005 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration