Skip to content

Instantly share code, notes, and snippets.

@dade80vr
Last active August 8, 2018 13:28
Show Gist options
  • Save dade80vr/b9dd63ac03dffaf5557b0f24e4c19288 to your computer and use it in GitHub Desktop.
Save dade80vr/b9dd63ac03dffaf5557b0f24e4c19288 to your computer and use it in GitHub Desktop.
Get Ricoh SMC value by given file and SP number (usage: ./getsmc.sh E254CA30043_5992004_20170706_095042.csv SP7944 001)
#!/bin/bash
cat $1 | grep $2 -A 40 | awk '/-'$3'/ { print $(NF) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment