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\] '
Posted by matt at 4:46 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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 \;




Posted by matt at 11:02 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2023 (1)
    • ►  January (1)
  • ►  2022 (4)
    • ►  April (2)
    • ►  January (2)
  • ►  2020 (4)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
  • ►  2019 (10)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ►  April (3)
    • ►  February (2)
  • ▼  2016 (9)
    • ►  December (2)
    • ►  November (1)
    • ►  September (1)
    • ▼  July (2)
      • New favorite PS1 prompt
      • Super handy tool: findwgrep.sh (find with grep) ...
    • ►  April (3)
  • ►  2015 (1)
    • ►  December (1)
  • ►  2014 (2)
    • ►  March (1)
    • ►  January (1)
  • ►  2013 (14)
    • ►  November (1)
    • ►  September (1)
    • ►  June (3)
    • ►  April (3)
    • ►  March (6)

About Me

matt
View my complete profile
Awesome Inc. theme. Powered by Blogger.