I want to plot box chart form file with has data already in two columns. Catch is that second column is in hex and need be additionality multiple by some const (734) i.e test.dat
amp 0x223
dupa 0x333
jasiu 0x4a4
halo 0xb1
best will be to do that in bash one liner . I just end with this
cat test.dat |xargs printf '%s $(printf "scale=2; %d/734\\n" | bc)\n' |xargs -0 echo
but that print some things like that
amp $(printf "scale=2; 547/734\n" | bc)
dupa $(printf "scale=2; 819/734\n" | bc)
jasiu $(printf "scale=2; 1188/734\n" | bc)
halo $(printf "scale=2; 177/734\n" | bc)
and not calculating second value. Last echo should do the work but is not doing , why and how to fix this ?