my rule of thumb for when i need a bash script - if i have a playbook of commands then it's time.

preview_player
Показать описание
Yo what's up everyone my name's dave and you suck at programming.

🔗 More Links

📖 Keywords
you suck at programming #programming
#devops #bash #linux #unix #software #terminal #shellscripting #tech #stem
Рекомендации по теме
Комментарии
Автор

funny how "there is no more permanent solution than a temporary working solution" also works in software where is it easy to modify

salim
Автор

Another trick: if I have a bunch of single commands that I use semi-regularly (often enough that it is a pain to remember/type, but not often enough to warrant an alias), I put them in a Makefile

tipeon
Автор

This seems like an absolute no brainer

yonderhornet
Автор

But it looks cool to pound cool jargon into a terminal and hit enter. Makes me feel like I know what I’m doing.

hellosammy
Автор

Document! Via scripts!! Couldn’t agree with you more!!! I’m now an electrical engineering manager (and a former embedded FW engineer), nothing irks me more than undocumented recipes (aka scripts) for our ECAD tools and release processes.

belesiu
Автор

I used to say.... Good admin is a lazy admin... Life is easier when you have functions and scripts for many ocassions.😊

DamianoZWA
Автор

Bonus points if those 20 commands are rumm by scrolling 20 times 20 entries in the termimal.

Chronologist
Автор

Not enough people use the script command.

GeorgeAdams
Автор

most often i need to see the output from the previous command and decide which command to run next. Do you think ansible playbooks would be a better option for repeated tasks on remote servers? Especially when you have a bunch of servers to manage, rsyncing scripts to servers makes things all over the place

lucianolucky
Автор

I make ansible playbooks for this kind of thing.

cliffwroberts
Автор

If its less the 5 lines i like storing in my documentation.
cmd1 && cmd2 && cmd3
But thats mostly so its easier to execute remotely

StayCHilL
Автор

You'd be surprised how many "admins" don't know how to write scripts other than just simply putting command after command in a file and chmod +x 'ing it.

rogerparrett
visit shbcf.ru