<[EMAIL PROTECTED]> wrote:
> echo 0x04abcdef|xargs -i printf "%x\n"
> (({}-0x043000000)
I assume that was supposed to be "$(({}-0x043000000))". 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" "$(({}-0x043000000))"'
news:comp.unix.shell is a good place to find help with writing
scripts.
paul
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash