-
Notifications
You must be signed in to change notification settings - Fork 55
How to regenerate repository by latest edid decode
Linux Hardware Project edited this page Sep 25, 2020
·
2 revisions
find . -type f -regextype posix-extended -regex '.*/[A-F0-9]{12}$' -print0 | while read -r -d '' file; do cat "$file" | grep -E '^([a-f0-9]{32}|[a-f0-9 ]{47})$' | edid-decode-2020-06-13 -c --skip-sha > /tmp/file; cat /tmp/file > "$file"; done
find . -type f -regextype posix-extended -regex '.*/[A-F0-9]{12}$' -print0 | while read -r -d '' file; do sed -i -e "0,/Serial Number/ s/Serial Number: .*/Serial Number: .../" "$file"; sed -i -e "0,/Display Product Serial Number/ s/Display Product Serial Number: .*/Display Product Serial Number: .../" "$file"; done