misc/tools/jlccplfix.sh

11 lines
203 B
Bash
Raw Normal View History

2024-03-12 03:37:51 -04:00
#!/usr/bin/env bash
set -e
if [[ ! -f "$1" ]]; then
echo "File does not exist!"
exit 1
fi
sed -i -e '1s|Ref|Designator|; 1s|PosX|Mid X|; 1s|PosY|Mid Y|; 1s|Rot|Rotation|; 1s|Side|Layer|' "$1"