题解 | #格式化输出#
格式化输出
https://www.nowcoder.com/practice/d91a06bfaff443928065e611b14a0e95
#!/bin/bash
awk -F "" '{
f=NF%3
for (i=1;i<=NF;i++){
printf $i
if((i-f)%3==0 && i!=NF)
printf ","
}
print ""
}' nowcoder.txt
#你觉得今年春招回暖了吗##23届找工作求助阵地##我的实习求职记录##零基础学习C++#
查看1道真题和解析