Skip to content

Instantly share code, notes, and snippets.

@mithro
Created October 7, 2016 08:43
Show Gist options
  • Save mithro/e0cc965866263e2f8b075bba080e3318 to your computer and use it in GitHub Desktop.
Save mithro/e0cc965866263e2f8b075bba080e3318 to your computer and use it in GitHub Desktop.
#!/bin/bash
sed -i -e's/_D1+/_CLK+/' -e's/_D1-/_CLK-/' $(grep -R -l '_D1+' . | grep '.sch')
git commit -a -m "HDMI signal fixes (1) - s/_D1/_CLK/"
sed -i -e's/_D2+/_D0+/' -e's/_D2-/_D0-/' $(grep -R -l '_D2+' . | grep '.sch')
git commit -a -m "HDMI signal fixes (2) - s/_D2/_D0/"
sed -i -e's/_D3+/_D1+/' -e's/_D3-/_D1-/' $(grep -R -l '_D3+' . | grep '.sch')
git commit -a -m "HDMI signal fixes (3) - s/_D3/_D1/"
sed -i -e's/_D4+/_D2+/' -e's/_D4-/_D2-/' $(grep -R -l '_D4+' . | grep '.sch')
git commit -a -m "HDMI signal fixes (4) - s/_D4/_D2/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment