Linux一次执行多条命令:使用for
for id in 111 222 ; do echo $id ; done
for ((a=1;a<=6;a++)) ; do echo $(du -sh /tmp); done
for id in {1..10} ; do echo $id; done
awk
输出奇数行
awk '{if(FNR%2!=0) print FNR$0}' 1.tx
安装配置好git后,在IDEA中使用git拉代码的时候,一直报:
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line develop