it is changing the file name to a different name according to time stamp dynamically. I want to capture that dynamic file name present in the directory to a variable .
After that i want to call a java program in the same shell script which will use this variable(i.e dynamic file name ) as parameter.
please let me know how to capture the dynamic file name present in the directory to a variable, so that i can pass that variable as a parameter in my java script which is called in the same shell script itself.
thanks Rudic for the quick reply.
its a existing code in production so i think i cannot remove tr command now, even though i am sure that removal of that won't create any issue.
but can we capture the the dynamic name including tr command by following the first
solution.
Pipes are used to connect processes by tying one's stdout to te next's stdin.
Strings are concatenated by writing them one after the other in the assignment statement. Should spaces exist within, enclose the entire assignment string in quotes.