How can I convert tabs to spaces in every file of a directory?
Simple replacement with sed is okay but not the best possible solution. If there are “extra” spaces between the tabs they will still be there after substitution, so the margins will be ragged. Tabs expanded in the middle of lines will also not work correctly. In bash, we can say instead find . -name ‘*.java’ … Read more