Skip to content

Instantly share code, notes, and snippets.

@nottux
Created January 23, 2020 23:19
Show Gist options
  • Select an option

  • Save nottux/3830e22d4fbd88fe30ffc36d7ad93235 to your computer and use it in GitHub Desktop.

Select an option

Save nottux/3830e22d4fbd88fe30ffc36d7ad93235 to your computer and use it in GitHub Desktop.
script to grep .bash_history
if [ "$2" = "$a" ]
then grep $1 $HOME/.bash_history
else grep $1 /home/$2/.bash_history
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment