Use command-line option -v
or --invert-match
,
ls -R |grep -v -E .*[\.exe]$\|.*[\.html]$
More Related Contents:
- Regex (grep) for multi-line search needed [duplicate]
- How to make “grep” read patterns from a file?
- How to extract all Yahoo emails from a .CSV file?
- How to find patterns across multiple lines using grep?
- Validating IPv4 addresses with regexp
- How do I grep for all non-ASCII characters?
- How to use regex with find command?
- Negative matching using grep (match lines that do not contain foo)
- (grep) Regex to match non-ASCII characters?
- Insert contents of a file after specific pattern match
- Regex lookahead for ‘not followed by’ in grep
- Using the star sign in grep
- Why doesn’t `\d` work in regular expressions in sed? [duplicate]
- How do you extract IP addresses from files using a regex in a linux shell?
- Bash, grep between two lines with specified string
- sed join lines together
- What’s wrong with my lookahead regex in GNU sed?
- What does ‘\K’ mean in this regex?
- Unix grep regex containing ‘x’ but not containing ‘y’
- Does lookbehind work in sed?
- Difference between egrep and grep
- Recursively change file extensions in Bash
- Using sed and grep/egrep to search and replace
- Grep and regex – why am I escaping curly braces?
- How to do a non-greedy match in grep?
- grep regex whitespace behavior
- Whats the difference between sed -E and sed -e
- Regular expression to remove fancy apostrophe [closed]
- What is a word boundary in regex?
- How to match the first word after an expression with regex?