Skip to content

Instantly share code, notes, and snippets.

@grenoult
Last active August 23, 2016 23:53
Show Gist options
  • Save grenoult/92784fb663f2a402e2aef6a1a2bbcead to your computer and use it in GitHub Desktop.
Save grenoult/92784fb663f2a402e2aef6a1a2bbcead to your computer and use it in GitHub Desktop.
General Unix stuff
# Vim: replace ‘),(‘ by ‘),\n(‘
:%s/),(/),\r(/g
# Archive content without extraction
tar -tf filename.tar.gz
# Find a file by its name
find . -name "profile.html"
# Execute multiple processes
A; B # Run A and then B, regardless of success of A
A && B # Run B if A succeeded
A || B # Run B if A failed
A & # Run A in background.
# Git: ignore file to be commited
git update-index --assume-unchanged file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment