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.
if [ "$CANCELLATION" ] then while test $num -gt 0 do if [ "$cjb" -gt 0 ]
Learned how to call functions in Vim but that didn't work.
Emacs - lost all the newlines