Various minifier scripts exist for shell code, (e.g. bash-minifier), but how about the reverse?Are there any shell-centric utils or scripts to automatically turn a one-liner like this:echo foo;echo bar;echo baz;bing;echo 'buz;bong'...into this:echo fooecho barecho baz;bingecho 'buz;bong'Or turn minimalist logic like this:true && echo foo...into this:if true ; then    echo foofi
Are there any unminify tools for shell scripting?
bash;shell;source code
Minification is not generally a reversible operation, as information could be lost in the process, e.g. consider human-readable variable names, comments, logical constructs, which can be written in multitude of different ways e.t.c.But there are various tools, which can pretty-print or beautify your code,which should solve #1 for you.One example is: https://github.com/mvdan/shA shell parser, formatter and interpreter (POSIX/Bash/mksh)Running your one-liner, through it, produces the following result:%shfmt <<<echo foo;echo bar;echo \baz;bing\;echo 'buz;bong'echo fooecho barecho baz;bingecho 'buz;bong'