random/makebk

9 lines
109 B
Bash

#!/bin/sh
# This simply makes a backup of a file as filename.bak
if [[ -n "$1" ]];
then
cp "$1"{,.bak}
fi