Skip to main content

11 docs tagged with "scripting"

View All Tags

Bash Base Dir

To set $SCRIPT_DIR to the directory where the script is, you can use this to find it savely.

Bash Script Header

To write save shell scripts, you should start them with the following lines.

rmdir for OSX

The Finder on OSX creates .DS_Store files in the directories to store its settings.

root login with bash

On our systems, the root account is set to be a role, so you can't login as root, just su to root from an user which has the root role.

ShellCheck

ShellCheck is an open source static analysis tool that automatically finds bugs in your shell scripts.

ShellCheck

ShellCheck checks your scripts for bugs.

SQLplus Scripting

To show only data in SQLplus and no header or other stuff, enter the following: