there are ideas i've come up with, neither really work. can anyone
look this over and help?
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# .rar script adding and extracting
for rar in $( a ); do
echo item: $rar a -ag+YYYY_MMDD- -ep1 -m5 -ol -ow -r -rr -s -v700m
-x*.iso -ms*.rar;*.zip;*.mp3;*.ogg;*.tar.*;*.ppt;*.PPT
fi
done
for rar in $( x ); do
echo item: $rar x -ad
fi
done
-------------------------------------------------second idea
#!/bin/bash
# .bashrc script for adding and extracting
function rar {
~/the.hole/rar/rar
}
case $(rar a) in
rar a)
-ag+YYYY_MMDD- -ep1 -m5 -ol -ow -r -rr -s -v700m -xiso
-msrar;zip;mp3;ogg;tar;ppt;PPT
;;
esac
case $(rar x) in
rar x)
-ad -ow
;;
esac