shfmt
Verified for current stable LTS
Shfmt Commands
Shfmt command syntax with verified terminal examples.
Commands
6 commands for Shfmt
shfmt Operations
Shfmt Command: Format Code According To Google Style Guide
shfmt -i 2 -ci -w <path/to/file> shfmt Operations
Shfmt Command: List Unformatted Files
shfmt -l <path/to/directory> shfmt Operations
Shfmt Command: Print Formatted Shell Script
shfmt <path/to/file> shfmt Operations
Shfmt Command: Set Indentation Space Count
shfmt -i <4> <path/to/file> shfmt Operations
Shfmt Command: Simplify Shell Code Syntax
shfmt -s <path/to/file> shfmt Operations
Shfmt Command: Write Formatted Output To File
shfmt -w <path/to/file> Suggest a Shfmt Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Shfmt workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.