Shell script using zenity
I'm using the following code for file selection using zenity:
pcap=$(zenity --file-selection) echo "Pcap file:$pcap" Displays the following o/p: Pcap file:/home/d/test.pcap But at the same time if I echo the o/p as: echo "Pcap file:$pcap ready" I'm getting the following o/p: readyle:/home/d/test.pcap I wanted to know how to avoid these line feeders in shell script. same as using chomp() cmd in perl scripting. |
echo -n
see http://www.tldp.org/LDP/abs/html/internal.html |
All times are GMT -5. The time now is 01:44 AM. |