Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hit grep subcommand #19001

Closed
dschwen opened this issue Oct 4, 2021 · 0 comments · Fixed by #19061
Closed

Add hit grep subcommand #19001

dschwen opened this issue Oct 4, 2021 · 0 comments · Fixed by #19061
Labels
T: task An enhancement to the software.

Comments

@dschwen
Copy link
Member

dschwen commented Oct 4, 2021

Reason

It is often useful to find input files that set a certain parameter. Vanilla grep is not helpful here, as it has no concept of hit blocks and context. Just searching a parameter by its name alone is unproductive, as many objects share parameter names.

Design

The most straight forward implementation would utilize wildcard matches to match full parameter paths

hit grep '/Contact/*/mesh' *

or (with parameter value matching)

hit grep '/Constraints/*/secondary_subdomain=*primary' *

this would be very straight forward to implement, but I'd like to be able to specify constraints on the type of a block matched with a * as well e.g.

hit grep '/Constraints/*/[secondary_subdomain=*primary,type=GapConductanceConstraint]' *

or some other more intuitive syntax.

Impact

A useful tool for people changing APIs around or looking for examples of parameter usage in a large set of input files.

@dschwen dschwen added the T: task An enhancement to the software. label Oct 4, 2021
@dschwen dschwen mentioned this issue Oct 8, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 11, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 11, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 11, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 11, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 13, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 13, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 13, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 18, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 19, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 19, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 19, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 19, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 19, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 21, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 22, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 25, 2021
dschwen added a commit to dschwen/moose that referenced this issue Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: task An enhancement to the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant