I want to write a script (or preferably an alias) that does the following:
- Find all the files matching a pattern
*.jar
- Iterate over all those files, and
run
jar tvf <jar file name> | grep <Some argument>
- Print if a
jar
contains a file with a name that matches theargument
I'm working on tcsh
and would prefer not to open a new shell since I want this as an alias and not a script - is it doable?