Quote:
Originally Posted by
Gurdza32
I am writing the shell on notepad
First off: you shouldn't. UNIX (any UNIX, including Linux) has a different way of separating text lines in a file , compared to Windows (any Windows-version). If you use (Windows-)
notepad.exe to write a file chances are you can't run it on Unix wiht some processing so you will be on the safer side writing the file with a UNIX-based editor on the system itself instead.
Quote:
Originally Posted by
Gurdza32
called valsplit.sh, when running the script in the ubuntu terminal I am required to...
OK, but: show us the script! how are we supposed to tell you what is wrong with your script when we haven't seen it yet? Post the content of said
valsplit.sh and we will perhaps be able to tell you why it doesn't do what it should. Then you can correct it until it is working. But without having seen it we are like doctors who - instead of examining a patient - are just called by one with the information "it hurts". The reason for this can be everything and then some.
Quote:
Originally Posted by
Gurdza32
This is a practice task for revision I am having trouble with setting up the shell script in notepad, creating a while loop to read each line of the input.txt file and the if statements to check the syntax also I am having trouble using the terminal.
OK. Lets for now assume the thread is legitimate here. We still haven't seen your code and as long as that has not been changed we can't help you. So please post your code (put it in CODE-tags!!) and on we go.
I hope this helps.
bakunin