Re: a question about {} of xargs

2005-02-18 Thread Paul Jarc
<[EMAIL PROTECTED]> wrote: > echo 0x04abcdef|xargs -i printf "%x\n" > (({}-0x04300) I assume that was supposed to be "$(({}-0x04300))". The problem with that is that bash processes the arithmetic expansion before invoking xargs. Try this: echo 0x04abcdef | xargs -i bash -c 'printf "%x\n"

a question about {} of xargs

2005-02-13 Thread gan_xiao_jun
Hi, I want to calculate 0x04abcdef-0x04300 in shell script. but following can't pass 0x04abcdef to {} v echo 0x04abcdef|xargs -i printf "%x\n" (({}-0x04300) ^ Thank for any suggestion.