Fixed ctar (removed du), made rsh non case sensitive

This commit is contained in:
Austen Adler 2015-12-09 13:01:35 -05:00
parent 15d7066a6d
commit b4f6a624f2

View File

@ -43,7 +43,7 @@ function rsh(){
cat /home/stonewareslord/syncthing/shared/ips cat /home/stonewareslord/syncthing/shared/ips
return 1 return 1
fi fi
ADDR=$(cat /home/stonewareslord/syncthing/shared/ips | sed -rne "s/^$1: //p") ADDR=$(cat /home/stonewareslord/syncthing/shared/ips | sed -rne "s/^$1: //pi")
shift shift
if [ -z $ADDR ] ; then if [ -z $ADDR ] ; then
echo "Hostname not found" echo "Hostname not found"
@ -142,7 +142,8 @@ alias -g L="2>&1|less"
alias -g G='|& ag' alias -g G='|& ag'
export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x' export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x'
function ctar(){ function ctar(){
tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest tar -cf - $@|pv -WcN tar|gzip|pv -WcN gzip
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest #tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
} }
function offline(){ function offline(){