Reputation: 6084
In a shell script, is there a way to print command in this literal form after all variables are replaced with real value. For example, mkdir -p $HOME/src
, before this command is executed, print something like mkdir -p /home/user/src
. Thanks.
Upvotes: 0
Views: 64