Shell script using zenity
I'm using the following code for file selection using zenity:
echo "Pcap file:$pcap"
Displays the following o/p:
But at the same time if I echo the o/p as:
echo "Pcap file:$pcap ready"
I'm getting the following o/p:
I wanted to know how to avoid these line feeders in shell script.
same as using chomp() cmd in perl scripting.