Alvinalexander2 years agoScalaA MySQL database backup (mysqldump) shell scriptCreating a simple MySQL database backup shell script using mysqldump on Linux servers. [ more ]
Alvinalexander6 months agoScalaA Scala shell script example (and discussion)To run a Scala script as a Unix/Linux shell script, use a special syntax in the script file. The 'exec' command in the shell script uses $0 to refer to the script file and $@ to refer to positional parameters. [ more ]
Alvinalexander7 months agoScalaUnix/Linux: Changing many files with the same multiline string patternUse awk and a Unix shell script to edit the content of multiple files Be cautious and make backups before making mass changes to files [ more ]
Alvinalexander2 years agoScalaA MySQL database backup (mysqldump) shell scriptCreating a simple MySQL database backup shell script using mysqldump on Linux servers. [ more ]
Alvinalexander6 months agoScalaA Scala shell script example (and discussion)To run a Scala script as a Unix/Linux shell script, use a special syntax in the script file. The 'exec' command in the shell script uses $0 to refer to the script file and $@ to refer to positional parameters. [ more ]
Alvinalexander7 months agoScalaUnix/Linux: Changing many files with the same multiline string patternUse awk and a Unix shell script to edit the content of multiple files Be cautious and make backups before making mass changes to files [ more ]
Alvinalexander10 months agoWeb developmentHow to close a Mac OS X app from a shell script (or command line)The command 'osascript -e 'quit app "Safari"'' can gracefully close a MacOS application. The command can be used in automation scripts to close specific applications. [ more ]