This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -lt 1 ]] ; then | |
echo "usage: $0 <dir>" | |
fi | |
if [ ! -d $1 ] ; then | |
echo "directory doesn't exist" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -lt 3 ]] ; then | |
echo "usage: $0 <source dir> <output dir> <base dp size>" | |
exit 1 | |
fi | |
if [ ! -d $1 ] ; then | |
echo "source directory doesn't exist" | |
exit 1 |