Re: List files without a character in dos


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by SpywareDr on March 01, 2009 at 03:53:37:

In Reply to: List files without a character in dos posted by Alessandro Drudi on February 28, 2009 at 20:18:18:

: How can I list all the files whose names don't
: contain a specific character or, more generally,
: a given string?

##

dir | find "qwerty"

Show only the lines containing the string "qwerty"

dir | find /v "qwerty"

Show only the lines NOT containing the string "qwerty"

dir | find /i /v "qwerty"

'/i'gnore the case of characters, (UPPER-, lower-, MiXeD-case), when searching for lines NOT containing the string "qwerty"




Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]