Is Alpha Only

Check if a string contains only alphabetic characters.

Code

General
[[ "$str" =~ ^[a-zA-Z]+$ ]] && echo "true" || echo "false"

Parameters

The string to check

Server

More Bash Snippets