Jump to content
The mkiv Supra Owners Club

Unix scripting ..


paul_y3k

Recommended Posts

sigh, i've spent the day trying to suss this, and i know it should be easy but I'm falling ......

 

I've one file that contains a list of numbers ..

1

2

3

 

All i want to do is read each line into a varible do something with it, then move on to the next line and repeat ...

 

i.e

loop

X=read line of file

touch file.X

go back around

 

and end up with

file.1

file.2

etc

 

please dont tell me this is awk / sed. They scare me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.