I'm writing an automated Script in Bash, and I've got into a bit of a block...
I have a file called /scripts/resources/nodes,txt
The file currently hold only three lines:
A drawback with this is that any variables set within the loop are no longer set outside the loop. If, for example, you had a counter within the loop which you incremented for each line, that value would be lost when the loop finished. If you need such a value, write it to a file within the loop, then read the file outside.
David Sankovsky
ASKER
I had hidden characters... rookie mistake.. Thanks for the help
Try double checking your input data just to make sure everything is actually as you say:
Open in new window
and your output (you may want to empty the output file first and rerun the script, since it's appending each time):Open in new window