Results 1 to 4 of 4
I need to answer this questions...does anybody know the answers...please if u know send it to me as a privite message
THnx
"For the following and any subsequent exercises you ...
- 06-12-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 1
Shell script programming
I need to answer this questions...does anybody know the answers...please if u know send it to me as a privite message
THnx
"For the following and any subsequent exercises you ARE NOT permitted to use either SED or AWK".
Script 1
Pre-requisites
Create a file with x amount of lines in it, the content of your choice.
Write a script that takes two arguments. The first being a line of text, the second being your newly created file. The script should take the first argument and insert it into the very top (the first line) of the file named in your second argument.
Note! The file must retain the original name
Script 2
Take a copy (backup) and amend the above script so that it now inserts the first argument into the middle of the file.
Note! Again the original file must retain it original name
- 06-12-2007 #2
Asking homework questions is against the forum rules.
- 06-12-2007 #3
- 06-12-2007 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
No homework questions as per forum rules - check the link in my signature.
Also please consider it is poor forum etiquette to answer problems by private message, as then others cannot contribute to or share in the knowledge.



