Re: awk(1) rshift/lshift on the borders of int

2012-01-17 Thread Jakub Tuček/otaznik
Martin Pelikan napsal: > I can't say anything more than 'this solved my problem', which was > > $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e > 'obase=16' > FF80 > vs. > $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e > 'obase=16' > DE >

awk(1) rshift/lshift on the borders of int

2012-01-17 Thread Martin Pelikan
I can't say anything more than 'this solved my problem', which was $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e 'obase=16' FF80 vs. $ echo | awk '{ printf "%u\n", rshift(int("0xdeff"), 24) }' | bc -e 'obase=16' DE I hope it starts a discussion (at least)