I have written a small bash script to check machine's architecture:
#!/bin/bash
v=$(uname -m)
echo $v
if [[ $v =~ ".*64.*" ]] ; then
echo "64 bits!"
else
echo "32 bits!"
fi
being launch on my machine:
$ uname -m
x86_64
So why do I get this result ?
$ ./test.sh
x86_64
32 bits!