cut
echo "x:xx:xxx" | cut -d ":" -f 2
uniq
cat file0 | sort | uniq
awk
echo "x:xx:xxx" | awk -F ":" '{for(i=1;i<=NF;i++) print $i}'
sed
sed -i '/s/原字符串/新字符串/g' 1.txt
原文链接:https://www.f2er.com/bash/390121.htmlcut
echo "x:xx:xxx" | cut -d ":" -f 2
uniq
cat file0 | sort | uniq
awk
echo "x:xx:xxx" | awk -F ":" '{for(i=1;i<=NF;i++) print $i}'
sed
sed -i '/s/原字符串/新字符串/g' 1.txt
原文链接:https://www.f2er.com/bash/390121.html