Skip to content

Instantly share code, notes, and snippets.

@o0-o
Last active May 7, 2019 02:26
Show Gist options
  • Save o0-o/a255312c6a111bc46b07a1e636be1cb7 to your computer and use it in GitHub Desktop.
Save o0-o/a255312c6a111bc46b07a1e636be1cb7 to your computer and use it in GitHub Desktop.
[CPU Architecture] Prints the CPU architecture #Shell
# cpu_arch.sh
uname -m |
sed 's/amd64/x86_64/' || #x86_64 is the generic name for amd64
exit 1 #failure
exit 0 #success
#https://forums.fedoraforum.org/showthread.php?186239-x86_64-vs-amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment