bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13919: using echo to branch line


From: 王宾
Subject: bug#13919: using echo to branch line
Date: Sun, 10 Mar 2013 20:44:07 +0800 (CST)

--
hi,
As we know:
address@hidden my_shell]$ echo $PATH
/usr/local/Trolltech/Qt-4.7.4/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/polar/bin:/sbin
address@hidden my_shell]$
when i use
address@hidden my_shell]$ echo  ${PATH//:/'\n'}   -e
to branch line and hope the result may be like this
address@hidden my_shell]$ echo $PATH | sed 's/:/\n/g'
/usr/local/Trolltech/Qt-4.7.4/bin
/usr/lib/qt-3.3/bin
/usr/kerberos/bin
/usr/local/bin
/usr/bin
/bin
/usr/X11R6/bin
/home/polar/bin
/sbin
address@hidden my_shell]$
but i can't get the result according---echo  ${PATH//:/'\n'}   -e, and i have 
searched the Internet but no answer, so i send this e-mail to you for help,  
thank you for sparing your time and  thank you for your answer!

Best Wishes
------------------------------------------
Wang bin
Addr: XUPT.Xi'an.Shaanxi.China
E-mail: address@hidden
Zip/Postal Code: 710061


reply via email to

[Prev in Thread] Current Thread [Next in Thread]