misc/jlccplfix.sh
2024-03-12 01:37:51 -06:00

10 lines
203 B
Bash

#!/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"