Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Grep check

if grep -q 'foo' ~/.bash_history; then
  echo "You appear to have typed 'foo' in the past"
fi
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #Grep #check
ADD COMMENT
Topic
Name
8+6 =