News for hackers. Stuff that matters.
Re:Shell Tricks That Make Life Easier (and Save Your Sanity) by zahlman on Thursday March 26, 2026 @09:24PM (#47538016)
I'd try this, but I often find that I want to repeat a cycle of two or more commands. Yes, I probably should edit and put them on one line with semicolons (or even make a function), but.
Re:Shell Tricks That Make Life Easier (and Save Your Sanity) by henrik_w on Friday March 27, 2026 @06:07AM (#47540821)
Or put && between them - I had "compile;run" and when compile failed, it still ran (but the old build). Took me a while to figure out. && ensures the first command succeeds. Anyway, so worth it to combine commands into one line for easy re-run.