shell scripting (special characters)
Hi
How do i go about passing a special character to a command.
Eg i have a file with a line of text within it called names.txt, If i send
#echo "this is a new line of text" >>names.txt
Then look into the file i will see
Johnthis is a new line of text
This appends to existing data in the file , I want to tell the redirector to insert a new line before appending so that the output becomes
John
this is a new line of text
Are there any special characters like \n or something that i can pass to do this.
Thanx
|