blob: 91ee6207e518b8372ad0bbd20709a47efd487bba (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
name="$(echo "$1" | sed 's/ /_/g')"
if [[ -e "$name" || ! -e "$1" ]]; then
printf "either output file exists or input file doesnt exist" || mv $f $1
exit 1
else
mv "$1" "$name"
fi
|