L
leon_ges
Guest
Can anybody see the issue?
I have the following commands:
$ x3=$(grep -i isend x.x | tr -s " " )
$ echo $x3
isEndOfStream = false
$ x3=$(grep -i isend x.x | tr -s " " | cut -d "=" -f 2 )
$ echo $x3
false
$ x3=$(grep -i isend x.x | tr -s " " | cut -d "=" -f 2 | cut -c1-5)
$ echo $x3
fals
Where is 'e'?
But if I further do this:
$ x4=$(echo $x3)
$ echo $x4
false
$ x4=$(echo $x3 | cut -c1-5)
$ echo $x4
false
I got the whole value (false).
Thanks for any explanation and workaround.
Noel
I have the following commands:
$ x3=$(grep -i isend x.x | tr -s " " )
$ echo $x3
isEndOfStream = false
$ x3=$(grep -i isend x.x | tr -s " " | cut -d "=" -f 2 )
$ echo $x3
false
$ x3=$(grep -i isend x.x | tr -s " " | cut -d "=" -f 2 | cut -c1-5)
$ echo $x3
fals
Where is 'e'?
But if I further do this:
$ x4=$(echo $x3)
$ echo $x4
false
$ x4=$(echo $x3 | cut -c1-5)
$ echo $x4
false
I got the whole value (false).
Thanks for any explanation and workaround.
Noel