Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

find demo

By: a guest on Oct 21st, 2012  |  syntax: None  |  size: 0.29 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. bash-4.2$ ls -A
  2. x.c  x.cc  x.Cc  .x.(c\|C\|cc\|CC\|h\|H)  x.h  x.hc
  3. x.C  x.cC  x.CC  x.ch                     x.H  x.hh
  4.  
  5. bash-4.2$ find . -regex '.*\.\(c\|C\|cc\|CC\|h\|H\)'
  6. ./x.C
  7. ./x.H
  8. ./x.c
  9. ./x.h
  10. ./x.CC
  11. ./x.cc
  12.  
  13. bash-4.2$ find . -name '.*\.\(c\|C\|cc\|CC\|h\|H\)'
  14. ./.x.(c|C|cc|CC|h|H)
clone this paste RAW Paste Data