output redirection to another directory
i just wanted to ask if it is possible to redirect an output to another directory w/o the use of variables (that is directly with just a single <ENTER>)
assuming that i am working on a java class file and i want my filename to be the current date and time i would type,
$ java javafile >`date '+%D%M%Y_%H%M%S'`
but what would happen is that the output file would be placed on the "current directory" (/home/username/javafiles). what if, i want the file to be redirected to the destination directory that i want? for example, i want to place it under /home/username/javafiles/testoutput
is it possible?
thanks in advance