Skip to content

Instantly share code, notes, and snippets.

View dixonge's full-sized avatar

Glenn Dixon dixonge

View GitHub Profile
@dixonge
dixonge / Match-line-search-replace-multiple-characters-all-files
Created April 2, 2020 16:17
Match line and do a search/replace for multiple characters on all files
sudo sed -i '/match:/s/to-replace/replace-with/g' * 

@dixonge
dixonge / Find+SED-Search-Replace-All-Files-All-Subfolders
Last active April 2, 2020 16:15
Use find and sed to search/replace in all files in all subdirectories
find ./ -type f -exec sed -i -e 's/find-this/replace-with-this/g' {} \;
grep -rwl “search-string” /path/to/search/dir

Keybase proof

I hereby claim:

  • I am dixonge on github.
  • I am dixonge (https://keybase.io/dixonge) on keybase.
  • I have a public key ASAtl9aGQlva6o-RX419jFu3dw4qs0adI3Hj9MPTxLB7cAo

To claim this, I am signing this object:

@dixonge
dixonge / USStatesAbbreviated
Created May 6, 2014 22:33
Two-letter Abbreviated List of U.S. States
AL
AK
AZ
AR
CA
CO
CT
DE
FL
GA
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina