while read pos; do
string1=`echo $pos | cut -c 20-38`
string2="=$pos"
string3="$string1 $string2"
echo "$string3"
done < file
This is the code of my script. I want to display the output in one single line, but the output comes on different lines. How can I do this?
ex- pos = abcdefghi1234567890QWERTYUXY.tar.gz string1 = 1234567890QWERTYUXY string2 = abcdefghi1234567890QWERTYUXY.tar.gz
output wanted :
1234567890QWERTYUXY abcdefghi1234567890QWERTYUXY.tar.gz