Answers for "Grep check"

0

Grep check

if grep -q 'foo' ~/.bash_history; then
  echo "You appear to have typed 'foo' in the past"
fi
Posted by: Guest on March-31-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language