about pipe

2005-02-21 Thread gan_xiao_jun
Hi, while running: myapp 2>/dev/null& I want to change 2>&1 without stop this job. Is there some tips to finish it? Thanks in advance gan __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_

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.