#!/bin/sh
# This script should be used to decript rar arhives w/o showing the password to
# the console.
# Thanx to ru.linux conference.:)
if [ "$1" = "" ]; then
 echo Usage: $0 encrypted_rar_arcive
 echo $0 runs unrar in such way, when password is not shown on the stdin.
else
 echo "Current dir is: `pwd`"
 echo -n Password:
 stty -echo
 read password
 stty echo
 unrar x -p"$password" $1
fi
