Last active
August 8, 2018 13:28
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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