Your post seems to have caused some confusion, (war could be a typo of tar) perhaps if you explained what a
file is then it would have made more sense to people.
will not know how to unpack the WAR file, so you will need to work out how to do this before searching the resulting files. Using
which details unpacking jar files. Perhaps you could adapt/learn from it. Failing that use