如题所述
ç¨awkï¼awkéé¢æ°åãå符串没æåºåï¼å符串è¿è¡è¿ç®æ¶ä¹ä¼å½ææ°åã
A=0x3è¿æ ·åï¼å¯ä»¥è®¾ç½®-F=ãå段åé符=ã
è¿æ ·ï¼awkä¸$1å°±æ¯Aï¼$2å°±æ¯ä»çå¼ 0x3
echo "A=0x3" >tmp.txtawk -F= '{print $2;print $2+20}' tmp.txt
è¯ä¸ä¸ï¼æè¿éWin10åæ¢æWin7ï¼è¯ä¸äºã
温馨提示:答案为网友推荐,仅供参考