hi folks,
the bash auto completion make a / at the end of a directory how i can strip this out?
Thanks for hints.
#!/bin/sh
target=$1
function backup(){
date=`date "+%y%m%d_%H%M%S"`
PWD=`pwd`
path=$PWD/$target
tar czf /tmp/$date$target.tar.gz $path
}
backup