Matt's Tech HOWTO's
Matt Feenstra is an Architect and Developer, living and working in Palm Desert, CA
Friday, July 15, 2016
New favorite PS1 prompt
# .bash_profile
.
.
.
.
.
PS1='\[\033[0;35m\]\u\[\033[0;31m\]@\[\033[0;32m\]\h\[\033[1;37m\]:\[\033[1;34m\]\w\[\033[1;33m\]\$\[\033[00m\] '
Wednesday, July 13, 2016
Super handy tool: findwgrep.sh (find with grep)
#!/bin/bash
# findwgrep <word>
# Search through the files from here (./) onward for a word
find ./ -type f -exec grep -Hi "$1" {} 2>>/dev/null \;
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)