I wish to compile the results of a find command where the find command returns the relative filepath of a java file located in subdirectories. E.G., I am in
./ and I want to run
javac on a file,
someFile.java, but I don't know at "command-type-time" what the relative path is.
find . -name someFile.java returns the correct relative path (and only the correct one so long as
someFile.java is uniquely named within subdirectories of
.) I wish to compile THIS file. So I have attempted
javac | find . -name someFile.java but I am not sure about why this is not working. Is this even possible?