$ ansible -i hosts all -m shell -a "/usr/sbin/ip addr | grep -A 3 'eth0:' | grep link/ether | awk '{print $2}'" | awk '{print $1}' | tr 'a-z' 'A-Z' | tr ':' '-'
image.pngsed 中如何替换换行符
https://www.cnblogs.com/luobosong/p/3915769.html
How can I replace each newline (\n) with a space using sed?
https://stackoverflow.com/questions/1251999/how-can-i-replace-each-newline-n-with-a-space-using-sed
网友评论