Shell script help

Tyler Aviss tjaviss-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Jul 3 21:02:51 UTC 2007


Maybe the lines are ending in a deletion character?
Can you redirect the output to a textfile and share it with us?

svn st>/tmp/output.txt


Why the echo anyhow, or are you using $ST somewhere else?

Regards,


Tyler Aviss
System Administrator/Technician
LPIC/LPIC-2


p.s.



On 7/3/07, Neil Watson <tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org> wrote:
>
> Could some kind sole explain why these outputs are different:
>
> nhwatson at tor-lx-svn ~/test_repo/trunk $ ST=$(svn st); echo "$ST"
> ?      one
> ?      five
> !      bar
> !      four
> nhwatson at tor-lx-svn ~/test_repo/trunk $ ST=$(svn st); echo $ST
> ? one ? five ! bar ! four
>
> Where do the new lines go in the second example?
>
> --
> Neil Watson             | Debian Linux
> System Administrator    | Uptime  14:55:17 up 21:19,  2 users,  load
> average: 0.00, 0.00, 0.00
> http://watson-wilson.ca
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20070703/149f4cfc/attachment.html>


More information about the Legacy mailing list