Open main menu

CDOT Wiki β

Changes

User:Minooz/RepoSyncProj/Bash

201 bytes added, 10:11, 18 October 2010
Bash Scripting Help
:[http://arachnoid.com/linux/shell_programming.html Shell Programming]
: [http://www.linux.org/lessons/advanced/x1110.html Linux org]
==Tips==
*Watch the spaces
<source lang=bash>
 
if [ -d "$tmpInternal" ]; then
rm -r $tmpInternal >> $dateError.txt
elif [ -d "$tmpExternal" ]; then
rm -r $tmExternal >> $dateError.txt
fi
</source>
1
edit