I know this is a simple question but I am quite new to programming and I want to know if there is a way to get the output of a javap file to multiple different named text files. Eg. In the case of one output file it would be javap -c abc.class > nameOfTheFileYouWant.txt what about in the event that where I want it to output more than one uniquely named text file.
If you are using bash, then you can use tee
command as shown below
javap -c abc.class | tee file1.txt file2.txt file3.txt
In this specific example same output will be written to three files file1.txt
, file2.txt
and file3.txt