question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Excluding pattern

See original GitHub issue

Is there any way to exclude files from the search? I tried:

tcm -p src/**/(!*.global)*.css

But it does not seem to work.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lxwbrcommented, Aug 16, 2017

That one was to obvious to try out. 😬 Thank you for your help, works perfectly fine now!

0reactions
Quramycommented, Aug 16, 2017

sh: -c: line 0: syntax error near unexpected token ('

Did you escape command ? The pattern includes meta character (.

Please try with double quotation :

tcm -p "src/**/!(*.global).less"
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Exclude Patterns, Files, and Directories With grep
Excluding Files. We can ask grep to look for a string or pattern in a collection of files. You could list each file...
Read more >
Basic Regular Expressions: Exclusions
Rule 4. Exclusions. To match any character except a list of excluded characters, put the excluded charaters between [^ and ] . The...
Read more >
A regular expression to exclude a word/string - Stack Overflow
As you want to exclude both words, you need a conjuction: ... categoral_selector = make_column_selector(pattern = "(col2|co4|col6)") ...
Read more >
GNU tar 1.34: 6.4 Excluding Some Files
Causes tar to ignore files that match the patterns listed in file . Use the ' --exclude-from ' option to read a list...
Read more >
How to Exclude in Grep - Linuxize
In this article, we're going to show you how to exclude one or multiple words, patterns or directories when searching with grep.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found