So good to see - real sysadmins seems to prefer perl ;)
@scottmcbrien6535Ай бұрын
I think sysadmins prefer a variety of tools. If it’s something quick, bash. If it’s data parsing, formatting heavy, Perl. If it’s something to maintain longer term, maybe Python. Choosing the right tool from the available ones is important for your long-term sanity. For example if you’re doing arrays in bash, you should look at another tool 😂
@ttybitnik8 күн бұрын
Sharing two that I enjoy as well: - `!^`, first argument from the last command. I use it a lot to create a directory and change into it: `mkdir foooo` then `cd !^`. - `!$` or `M-.` (Alt-.), last argument from the last command. I mostly use it to change permissions/ownership after copying a file: `cp foo.txt ./foooo/bar.txt` then `chmod 400 (!$ or M-.)`. (Just saw Scott mentioned it) Love this show! I missed a couple of episodes, but I’m catching up. (P.S.: My beloved Emacs also shines when it comes to searching and replacing across multiple files, even over SSH. One can export the output of `rg` into a buffer, then check and perform the replacement operations restricted to that buffer. Not saying that everyone should be doing it this way or anything. Just showing some love for my ancient but powerful parentheses machine hehe)