Changes

Jump to: navigation, search

User:Minooz/RepoSyncProj/Bash

210 bytes added, 14:37, 18 October 2010
Tips
*Watch the spaces
<source lang=bash>
 
if [ -d "$tmpInternal" ]; then
rm -r $tmpInternal >> $dateError.txt
* The increment operator in bash
<source lang=bash>
 
while [ $revTmpInternal -lt $revInternal ]; do
((revTmpInternal++))
done
</source>
 
 
* to check if a file exists: (when using wild cards, if you don't use double quotes, there will be this error: "binary operator expected")
<source lang=bash>
 
if [ -f "*.patch" ]; then
rm *.patch
fi
</source>
1
edit

Navigation menu