Answers for "find substring using grep"

0

search of string with grep

grep 'searchText' fileName
Posted by: Guest on August-03-2021
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