GRABBING THE HIDDEN

25. August 2008

To easily select all
hidden files, use the
following:
  .[^.]*  ..?*
For example,
echo .[^.]* ..?*
will output a list of
all hidden files in your
current directory.
.[^.]*  selects all files
starting with a dot but NOT
having a dot as their
second character.
..?*    selects all files
starting with two dots and
having at least one additional
character
Together, they will retrieve
ANY file starting with '.'
except '.' and '..'  (even
tricky ones like '...hideme')
The ^ (caret) symbol can be
used as the first character
inside [ ] at any time to say
"not one of the following"
rather than the usual "any one
of the following."
[^0-9a-fA-F] will match any
character that is NOT a hex
digit.

How To

Comments

6/4/2010 8:09:12 AM #
Its like you read my mind!  You seem to know so much about this, like you wrote the book in it or something.  I think that you could do with some pics to drive the message home a bit, but other than that, this is great blog.  A great read.  Ill definitely be back.
6/7/2010 7:48:17 AM #
All I can say is keep it up.  This blog is so necessary in a time when everyone just wants to talk about how many people someones cheated on their wife with.  I mean, thanks for bringing intelligence back to the web, its been sorely missed.  Great stuff.  Please keep it coming!
6/23/2010 12:24:33 AM #
You guys play RTS?
6/23/2010 12:50:22 AM #
Any of you play Starcraft?
6/29/2010 3:42:21 PM #
Any of you play Starcraft?

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading