awk高级用法
if else
while
字符数量:
do while
for 循环:
shell for
awk 效率高:
switch:
next:
关联数组;
for 便利:
压测:
a b 实际参数:
v1 v2 形参
echo "Yd$C@M05MB%9&Bdh7dq+YVixp3vpw" | awk '{gsub(/[^0-9]/,"");print $0}'
echo "Yd$C@M05MB%9&Bdh7dq+YVixp3vpw" | awk '{gsub(/[^0-9]/,"",$0);print $0}'