ViaThinkSoft CodeLib
This article is in:
CodeLib → Programming aids → Bash (linux shell)
Datei "variables"
Datei "test.sh"
# This is a comment
ABC=xyz
Datei "test.sh"
#!/bin/bash
# Load global variables
if [ -f variables ]; then
. variables
fi
# This will output "xyz"
echo "$ABC"
Daniel Marschall
ViaThinkSoft Co-Founder
ViaThinkSoft Co-Founder