Bash Determine whether a Variable Contains Spaces: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * bash =Method 1= <syntaxhighlight lang='bash'> if [[ ${a} = ${a// /} ]]; then echo "spaces NOT found" else echo "spaces found...") |
(No difference)
|
Latest revision as of 19:53, 20 September 2019
Internal
Method 1
if [[ ${a} = ${a// /} ]]; then
echo "spaces NOT found"
else
echo "spaces found"
fi