Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #Finding if miniconda or anaconda string is in bashrc
  2. if grep -qF -e miniconda -e anaconda "$HOME"/.bashrc ;then
  3. echo "miniconda is found in .bashrc"
  4.  
  5. #anaconda
  6. #miniconda
  7.  
  8. jen@scs400:/scratch$ source bash_script.sh
  9. miniconda is found in .bashrc
  10.  
  11. if grep -qwE '^[^#]*(ana|mini)conda' "$HOME"/.bashrc ;then
  12. echo "miniconda/anaconda is found in .bashrc"
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement