bash

Batch Convert 4-Space Indentations to 2-Space

Batch Convert 4-Space Indentations to 2-Space

While adding a linter to an old project, I wrote the following bash script to convert 4-space indentations to 2-space indentations. This example recursively looks for *.js files starting at the script’s location. Of course, it can be used for any type of file though by simply changing the extension.

Development Featured Linux Mac Server
Update Multiple WordPress Installations

Update Multiple WordPress Installations

Featured Linux Server WordPress