Advertisement
pintcat

get-arch.bash

Oct 22nd, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/bash                                                                                                                                                  
  2. typeset -i CORES=$(grep -m 1 "cpu cores" /proc/cpuinfo | awk '{print $4}')+1
  3. if [ $(uname -m) = x86_64 ]; then
  4.     ARCH=64bit
  5. else
  6.     ARCH=32bit
  7. fi
  8. echo $ARCH" architecture found."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement