Shell Fu

title: Shell Fu name: Shell Fu bundle_name: ShellFu keyword: shellfu files: [’index.md', ‘…/style.css’] stylesheet: style.css


don’t forget to use the eg command!

available here: https://github.com/srsudar/eg

misc. commands

Name Command Notes
sed in-place replacement sed -i '' "s/find/replace/g"
use grep to HIDE matching lines instead of showing them grep -v ...
wget: download website wget -r -np -k http://www.ime.usp.br/~coelho/mac0122-2013/ep2/esqueleto/

[General]


wget

For downloading files from a directory listing, use -r (recursive), -np (don’t follow links to parent directories), and -k to make links in downloaded HTML or CSS point to local files (credit @xaccrocheur).

$ wget -r -np -k http://www.ime.usp.br/~coelho/mac0122-2013/ep2/esqueleto/

Other useful options: