New answers tagged

1 vote
Accepted

How can I make my mysql database backup script generic, faster and safer

Overall This is totally decent code and not too difficult to maintain. Your variable names make sense and you've made some effort at not repeating yourself, other than the lack of a loop which you ...
user avatar
  • 2,731
4 votes

Change query strings with a Bash script

Generating files from template files Replacing dates in files correctly can be tricky. It requires carefully crafting the pattern so that: It correctly matches the values to replace. It does not ...
user avatar
  • 107k
3 votes
Accepted

Single instance of mpv while maintaining the coordinates of the previous window

Make the important elements easy to see In the posted code I mean the script parameter $1. Currently it appears in the middle of the code in two places. Until I ...
user avatar
  • 107k
2 votes
Accepted

Bash script to take user input to set AWS envrionment variable the first time and automatically in subsequent calls

good Nice indentation Good variable names Excellent sh-bang line (env lets bash be anywhere and -e for exiting on errors is ...
user avatar
  • 2,731
1 vote

Bash script using SSH to sum disk usage on NetApp

While going through your post and your requirement as I understand where you are looking for below string match, for this to solve better I would use regexp matches ...
user avatar
4 votes

Bash script using SSH to sum disk usage on NetApp

I have no idea of what you are trying to achieve, but still here we go. Less indentation is better than more indentation. Compare ...
user avatar
  • 53.8k

Top 50 recent answers are included