Help with bash script

I wrote a script using the command:

echo -e  ` grep -e "ATOM" $1 | cut -c7-11,31-54 `

the problem I am having is that the output in the script does not list the lines I am cutting, instead it places one next to the other in succession. How do I get the script to list the lines? I am new to unix so I am not sure what command to use

Welcome to the forum.

Not sure I understand. Please post input and output samples.

Thanks.
My script reads

if [ -z $1 ] 
then echo ""
else echo `grep -e "ATOM" $1 | cut -c7-11,31-54 `
fi

the input is the script with a filename
the output is:

23 14.267 10.895 0.527 24 13.400 10.078 -0.311 25 12.709 8.924 0.402 26 11.490 8.813 0.312

but the output is supposed to list them like this:

23 14.267 10.895 0.527 
24 13.400 10.078 -0.311 
25 12.709 8.924 0.402 
26 11.490 8.813 0.312

I am trying to crate a script that can open any pdb file and grep any rows with the word ATOM and just view certain columns in the output

Input would have been the contents of the file whose name goes into $1 so people can see on what data your command operates.

Howsoever, wildly guessing, I suspect the shell's behaviour to replace all contiguous whitespace in an unquoted text by one single space to be the culprit. Try double quoting the "command substitution".

BTW, the backticks `...` in your "command substitution" are deprecated; use $(...) .