Saturday, September 29, 2012

fish shell vs. bash

fish shell is a great tool. But it can be confusing in the initial stages especially to adapt from bash to fish shell. Some important differences are highlighted below.


  1. escaping wildcards such as *
    use double quotes
    rm "*.pyc"
  2. command expansion using backticks
    the bash command
    rm `find -type d -name .svn` would be
    rm (find -type d -name .svn) in fish shell

No comments:

Post a Comment

Continuously monitor GPU usage

 For nvidia GPUs do the follwing: nvidia-smi -l 1