shfmt Command Examples

Shell parser, formatter and interpreter. More information: https://pkg.go.dev/mvdan.cc/sh.

shfmt {{path/to/file}}

shfmt --list {{path/to/directory}}

shfmt --write {{path/to/file}}

shfmt --simplify {{path/to/file}}