Please use code tags as per forum rules for your codes/commands/Input_file which you are using into your posts. Your Input_file doesn't look in correct format may be you haven't pasted it correctly, if I am not wrong here you require space in between strings to be changed into new line. If this is the case then following may help you in same.
tr ' ' '\n' < Input_file
Also if above is not meeting your requirements then please use CODE TAGS and show us your correct sample for Input_file and expected output with all your conditions, I hope this helps you.
Exactly how are you invoking your shell script? Did you get any error messages when you invoked your shell script? (If so, exactly what diagnostics were produced?)
There are some syntax errors in your script that makes me very surprised that it works when you type it into a terminal session. Since you are redirecting the output from find into a file (assuming there is only one) with the filename extension .fnr , the variable BackupFile will be an empty string.
I asked what command you used to invoke your script and you have not yet answered that question. Except for the echo commands, none of the commands you have shown us are valid when using csh as your shell.
The main reason for the undesired behaviour posted in #1 is the missing quotes around $content when echo ing it to the results file. But, on top of the syntactical errors alluded to by Don Cragun, and e.g. the misunderstanding on what is a file and what is a variable, there might be a logical problem: the order of result lines produced by find can't be predicted as they are the result of an optimization process, so your tail -20 might give different results every time it is run...