{"by":"noperator","descendants":24,"id":41556088,"kids":[41576941,41577442,41581968,41584490],"score":147,"text":"I&#x27;ve built a tool called sol (like &quot;soul&quot;) that helps you inspect and format complex shell one-liners. Features:<p>- Choose which transformations you want (break on pipe, args, redirect, whatever)<p>- &quot;Peeks&quot; into stringified commands (think xargs, parallel) and formats those, too<p>- Auto-breaks at a given width (e.g., 80 characters)<p>- Shows you non-standard aliases, functions, files, etc. that you might not have in your shell environment<p>- Breaks up long jq lines with jqfmt because—let&#x27;s be honest—they&#x27;re getting out of hand<p>As a security researcher and tool developer, I often encounter (or create) long pipelined Bash commands. While quick and powerful, they can be a nightmare to read or debug. I created sol to make it easier to understand and share these commands with others.","time":1726494789,"title":"Show HN: Sol – A de-minifier for shell programs","type":"story","url":"https://github.com/noperator/sol"}