I am trying to create a script which accepts two strings. $1 is the text string I would like to add to a file and $2 is the file name. I know that one can use "sed" with the a\ option to do this. Every example I have seen of using a\ requires a separate script file in which I define the input to file. Is there some way I can do what I want to do without the extra script file?
LcdCyn
LcdCyn