Last active
April 8, 2019 05:24
-
-
Save Deliaz/001cce8195143c2e785106d92ffefa7c to your computer and use it in GitHub Desktop.
Shows versions of .CRX file (chromium extensions). Bash version.
This file contains hidden or 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 | |
echo -n -e "File type:\t" | |
xxd -l 4 $1 | awk '{for(i=NF; i>3; --i) print $NF}' | |
echo -n -e "Version:\t" | |
xxd -l 1 -c 1 -ps -s 4 $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make it executable first:
Usage:
Output:
NodeJS versions of the script