Monday, April 22, 2013

using regexp in bash

Using regexp in bash can simplify your life (and the visualization of list of files..). Have a look to this:

$> ls sgd[^_]*

all files which do that begin with sgd and DO NOT CONTAIN the pattern _

credit +Isaac Alonso 

No comments:

Post a Comment