initial commit

This commit is contained in:
Fabio Scotto di Santolo
2020-07-28 19:28:25 +02:00
commit 4cc88d2f6e
245 changed files with 22820 additions and 0 deletions

16
chapter23/function_get_arch Executable file
View File

@@ -0,0 +1,16 @@
get_arch ()
{
# Query the system for the hardware architecture. Newer
# machines use the -M switch and the older Micro-Channel
# architecture (MCA) machines use the -p option for
# the "uname" command.
ARCH=$(uname -M)
if [[ -z "$ARCH" && "$ARCH" = '' ]]
then
ARCH=$(uname -p)
fi
echo "$ARCH"
}