Answers for "grep for substring"

0

grep for substring

output=$(command)
[[ $output =~ (CpuIowait=[0-9][.][0-9]{2}) ]] && echo "${BASH_REMATCH[1]}"
Posted by: Guest on April-05-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language