7 lines
122 B
Bash
7 lines
122 B
Bash
|
#!/bin/sh
|
||
|
if echo "$1" | grep -Eq 'i[[:digit:]]86-'; then
|
||
|
echo i386
|
||
|
else
|
||
|
echo "$1" | grep -Eo '^[[:alnum:]_]*'
|
||
|
fi
|