#!/bin/bash
awk '{
if(NR==1){
str=$0
} else {
if($0 ~ /^[[:space:]]+/)
str=str "\t" gensub(/^[[:space:]]+/, "", "", $0)
else
str=str "\n" $0
}
}
END{
print str
}' /jiankong/diskcheck_tmp
欢迎分享,转载请注明来源:内存溢出
#!/bin/bash
awk '{
if(NR==1){
str=$0
} else {
if($0 ~ /^[[:space:]]+/)
str=str "\t" gensub(/^[[:space:]]+/, "", "", $0)
else
str=str "\n" $0
}
}
END{
print str
}' /jiankong/diskcheck_tmp
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)