shell introduction
find . -mtime -1 -type f -print
file "$1"
case "$ftype" in
"$1: Zip archive")
unzip "$1" ;;
"$1: gzip compressed")
gunzip "$1" ;;
"$1: bzip2 compressed"*)
bunzip "$1" ;;
*) error "File $1 can not be uncompressed with smartzip" ;;
esacecho "$file" | sed "s/${OLD}/${NEW}/g"
if [ -f "$newfile" ] ; then
echo "ERROR: $newfile exists already"
else
echo "renaming $file to $newfile ..."
mv "$file" "$newfile"
fi
fi
done