将缩进转换为制表符

将缩进转换为制表符
find . -type f -regex '.*\.\(cpp\|h\)' -exec bash -c 'unexpand -t 4 --first-only "$0" | sponge "$0"' {} \;

命令用途:将缩进转换为制表符

完整命令

find . -type f -regex '.*\.\(cpp\|h\)' -exec bash -c 'unexpand -t 4 --first-only "$0" | sponge "$0"' {} \;

评论(0

暂无评论,来说两句吧

发表评论

回复 取消