'Informatica - Is it possible to set a workflow variable in a command task without using a script?

I have a file (X) which contains a single line specifying the location and name of another file (Y). X is captured within a workflow variable but Y isn't, and I need to pass Y as a parameter to a post SQL command in one of the sessions. Since this should be possible using a single line with basename $(head -n 1 $$X), I am hesitant to create a script specifically for this (also since there are no other scripts currently used).

Is there a way to assign the output of a command (the one specified above) to a workflow variable?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source