I try to complete one shell script, but I don't have idea how to do final, and probably easiest step.
That is attaching value to variable from find command.
For example, if I execute:
find -type f -iname *test.tdf*
I will get output in example:
/root/Desktop/test.tdf
Now, I need a way to attach that value to for example:
export PATH_TO_TEST_TDF_FILE=/root/Desktop/test.tdf
But now, problem is that file may not be located there, so I must assign it to result from find.
How?