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
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