How can I convert tabs to spaces in every file of a directory?

后端 未结 19 1281
既然无缘
既然无缘 2020-12-02 03:48

How can I convert tabs to spaces in every file of a directory (possibly recursively)?

Also, is there a way of setting the number of spaces per tab?

19条回答
  •  时光取名叫无心
    2020-12-02 04:01

    No body mentioned rpl? Using rpl you can replace any string. To convert tabs to spaces,

    rpl -R -e "\t" "    "  .
    

    very simple.

提交回复
热议问题