Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

grep ? (regex)

Posted byjeffrin May 18, 2010

from grep info. GNU FDL

`?’ The preceding item is optional and will be matched at most once.

$cat bu.txt
bugy
buggy
bugggy
$

$grep -E bug\?y  bu.txt
bugy
$grep -E bugg\?y  bu.txt
bugy
buggy
$grep -E buggg\?y  bu.txt
buggy
bugggy
$
Posted byjeffrinMay 18, 2010Posted inUncategorizedTags: linux grep regex ?

Post navigation

Previous Post Previous post:
grep * wildcard
Next Post Next post:
grep -n ,-v , -c, -i
May 2010
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Apr   Jun »
TRUEANGLE, Proudly powered by WordPress.