# Short circuit:
foo && bar # bash
foo; and bar # fish
# Redirect stderr:
./foo 2>outfile # bash
./foo ^outfile # fish
# Command substitution:
file `which ls` # bash
file (which ls) # fish
search and filter file content
grep -v "//" file.js
# invert matching for "//" in file.js and print out the result
find . -name "*.js" | grep -i long | grep -v node_modules
# 1. find all .js files
# 2. that have word 'long' in their file/path string (-i case insensitive)
# 3. that does not have word 'node_modules'