variable.
if [ -z "$String" ]
then
echo "\$String is null."
else
echo "\$String is NOT null."
fi # $String is null.
</code>
-... integer characters.
# Caution advised, however.
echo
if [ "$a" -ne "$b" ]
then
echo "$a is not equal to $b"
echo "(arithmetic comparison)"
fi
echo
if
ers including whether or not characters should be echoed to the terminal. To turn off echoing, the command stty -echo can be used. Any subsequent user input (including commands typed at the shell) will not be echoed.
To restore the echoing, use stty echo. Howev
eblock, clean up last run #####
rm -rf ./metadata
echo -ne "\\n metadata directory cleaned! \\n\\n"
####...
LOGFILE="$META/script.log"
cd "$CWD"
echo -ne "\\n Current working directory is: \\n" $CWD ... le from processing
EXCL=$(basename "$0")
echo -ne "\\n Exclude Script file from processing: " $... EXIF text files in META dir (redirect output)
echo -ne "\\n Processing EXIF metadata now... \\n\\n"
ime $ROOT /mnt
if [ $? -ne 0 ] ; then
echo Could not mount OS on $ROOT. Starting debugging s... "`grep nosplash /proc/cmdline`" ]; then
# echo -n ""
# cp /mnt-system/boot/startup.fb /de... -t ext3 -o rw /dev/sda2 /mnt-user; then
# echo Error mounting user partition. Must run filesyste... unionfs /mnt
#if [ $? -ne 0 ]; then
# echo Could not mount unionfs. Starting debugging shell
ode:
<code>
#!/bin/bash
if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
DEBFILE="$1"
TM... .deb`.modfied.deb
if [[ -e "$OUTPUT" ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi
... N
if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
echo DEBIAN/control not found.
rm -r "$TMPDIR"
ex... [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
echo Not modfied.
else
echo Building new deb...
dp
ge 90 ]; then # if more than 90% of space is used
echo "$dev ($fs) is $used% full." | mail -s "$dev is l... | sort | awk '{print$6"-"$5"-"$4}'`; do
percent=`echo "$line" | awk -F - '{print$2}' | cut -d % -f 1`
partition=`echo "$line" | awk -F - '{print$1}' | cut -d % -f 1`
... en
limit=101
fi
if [ $percent -ge $limit ]; then
echo "Free Space warning!" | mail -a "From: spacecsekk