💻 Software
Re-indent shell script
Fresh7 days ago
Mar 15, 202634280 viewsConfidence Score0%
0%
Problem
I have a large shell script that uses a mixture of spaces and tabs. I want to re-indent the whole file based on syntax, like Eclipse's Format. Is there a program (beautify ?) that will do this ? I'm having a hard time figuring out the logic with everything jammed together e.g. Learned how to call f…
Error Output
if [ "$CANCELLATION" ]
then
while test $num -gt 0
do
if [ "$cjb" -gt 0 ]Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Re-indent shell script
Low Risk
Emacs can do that: load the file into Emacs press Ctrl-space at the top of the file move the cursor to the bottom of the file press Alt-X and type then return press Alt-X and type then return This will get rid of tabs and indent everything properly.…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix