All pastes #184526 Raw Edit

Untitled

public shellscript v1 · immutable
#184526 ·published 2006-09-28 00:08 UTC
rendered paste body
#!/bin/bashBACKFILE=${1}.bkpif [ -e $1 ]; thenif [ -e $BACKFILE ]; then        echo "Overwrite ${BACKFILE}\? y/n"        read        if [ $REPLY == "y" ]; then                bak()        else                break        fielse        bak()fifivim $1function bak { mv $1 $BACKFILE; }