misc/tools/jlccplfix.sh

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"