Help with printing new line in shell script

I'm having a script which outputs four different attributes A, B, C, D for a list of users.

I want to insert expression such that once the output is generated for first user, output for next user should be printed in new line.

Please help.

Hard to tell unless you show the script (at least the related part which is printing the information).

I'm using below command to finally output the data. Hope this suffices:

/usr/ucb/echo -n "$A|$B|$C|$D" >> /home/sur/a.txt

Leave out the -n option...

1 Like

Thanks Elixir.. It worked :b: