convert -resize 50% original.png resized.jpg
convert is part of the ImageMagick package.
find . -name '*.js' ! -path '*/vendor/*'
git grep -l 'pattern' | xargs sed -i 's/pattern/relacement/g'
paste -s -d':'
Useful when the output of one command in on multiple lines, and a single line is wanted.
(Without having to count its index)
grep 'pattern' | rev | cut -d'/' -f 1 | rev
Uses the rev command to reverse all characters, select the first field,
then reverse again.