Skip to content

Instantly share code, notes, and snippets.

@jorgeas80
Last active November 28, 2016 08:56
Show Gist options
  • Save jorgeas80/bd33f74fbb4042be2a2b89114bcabf90 to your computer and use it in GitHub Desktop.
Save jorgeas80/bd33f74fbb4042be2a2b89114bcabf90 to your computer and use it in GitHub Desktop.
Command line hacks

Case insensitive and recursive grep

grep -irn whatever *

Replace string in all files

find . -type f -exec sed -i 's/original_string/replacement/g' {} +

Quick preview of Markdown file in command line with lynx and pandoc

pandoc file.md | lynx -stdin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment