prime/tools/rename.sh

4 lines
85 B
Bash

#!/bin/bash -e
echo "$1 -> $2"
find . -type f -name '*.s' | xargs sed -i "s/$1/$2/g"