3 ms·
I wish there was some tool that could, given a one liner, expand it out into a series of steps to better understand it. (Or maybe someone wrote a 1 liner for t
by dontbenebby 8y ago
I wish there was some tool that could, given a one liner, expand it out into a series of steps to better understand it.
(Or maybe someone wrote a 1 liner for that too?)
Personally I prefer to write small bash scripts over one liners so future colleagues can understand the program's logic.
- oweiler 8y agohttps://explainshell.com/explain?cmd=tr+-cs+A-Za-z+%27+++++%27+%7C+++++tr+A-Z+a-z+%7C+++++sort+%7C+++++uniq+-c+%7C+++++sort+-rn+%7C+++++sed+%24%7B1%7Dq https://explainshell.com/explain?cmd=tr+-cs+A-Za-z+%27+++++%...
- zwieback 8y agoPerfect, this is why, after almost 10 years, I still come back to HN regularly!
- dontbenebby 8y ago>https://explainshell.com https://explainshell.com Thanks for this!
- sizzzzlerz 8y agoIn trying to understand one-liners like this, I find that it's valuable to break it down into each step. Run the first step to see what it outputs. Then, pipe that into the second. Repeat for each step of the process. Google or use the man pages, as needed.