Trying to create a shell script that will read the lines in a file handed to it in the command line. Look at the the fourth field of each line (which is numeric) and increase it by 1 - then print all the lines of the file with the new value.
That would probably work if II added the file name to the script - but as it is - it is looking for a file called "file" I need it to read the file from the command line because there will be other files to run the script on
dawber39
ASKER
and I just need it to print out the results on the screen - not to a new file
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
dawber39
ASKER
I should have mentioned that he fields are separated by :
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Open in new window