mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-05 23:36:30 +00:00
11 lines
160 B
Bash
Executable File
11 lines
160 B
Bash
Executable File
#! /bin/bash
|
|
|
|
for f in "$@"; do
|
|
ext="${f##*.}"
|
|
if [[ "$ext" == "bak" ]]; then
|
|
cp "$f" "${f%.*}"
|
|
else
|
|
cp "$f" "${f}.bak"
|
|
fi
|
|
done
|