![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a simple loop in csh | dsstamps | UNIX for Dummies Questions & Answers | 1 | 05-22-2008 04:03 AM |
| simple while loop | ali560045 | Shell Programming and Scripting | 10 | 12-26-2007 10:44 AM |
| simple for loop | ali560045 | Shell Programming and Scripting | 3 | 12-17-2007 01:39 AM |
| Simple while loop question | Brokeback | Shell Programming and Scripting | 3 | 07-21-2006 10:04 AM |
| a simple while loop | syno | Shell Programming and Scripting | 5 | 04-08-2006 07:45 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
A simple (?) loop
I have what I believe is a simple programming question. I have a text file that looks like:
mol 1 G:\stereo01.hin block text ... ... ... endmol 1 However, I would like a file that repeats this entire block of text several times over. The lines of text in the middle remain the same for each loop, but I'd like it if the numbers in bold in the above text went up sequentially with each loop of the text. So what I'm looking for is Prompt how many copies (save as n) Create a new file that is mol 1 G:\stereo01.hin block text endmol1 mol 2 G:\stereo02.hin block text endmol2 ... mol "n" G:\stereo"n".hin block text endmol"n" Thanks in advance for your help! ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|