Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Finding if miniconda or anaconda string is in bashrc
- if grep -qF -e miniconda -e anaconda "$HOME"/.bashrc ;then
- echo "miniconda is found in .bashrc"
- #anaconda
- #miniconda
- jen@scs400:/scratch$ source bash_script.sh
- miniconda is found in .bashrc
- if grep -qwE '^[^#]*(ana|mini)conda' "$HOME"/.bashrc ;then
- echo "miniconda/anaconda is found in .bashrc"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement