Last active
March 16, 2016 21:50
-
-
Save lifofernandez/3ba007f6792a0dc6ae35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#recursive find & replace in contents http://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files | |
find . -type f -exec sed -i 's/SEARCH/REPLACE/g' {} + | |
# Replace text in multiple filenames (only first lvl) | |
for i in *; do mv "$i" "${i//bartik/semanticui}"; done | |
#buscar lineas que NO contengan cierta palabra | |
^((?!SEARCH).)*$ | |
# Vim bring n lines from other file | |
:r! sed -n 147,227p /path/to/foo/foo.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment