Hoi everybody,
I am currently struggling with having to execute multiple commands in an echo. The following line is an example of the problem I am having:
echo (cd .. && pwd)
The idea is, that, when I am currently in the folder "home/Documents", the above code prints "home" - but is still in the directory "home/Documents". However, the above command fails.
The more general question is: How can I execute multiple commands in an echo and print the last result (or all results if its not possible any other way).
Thank you and kind regards.