This is the main question, but I'm struggling to find a decent solution. This prevents script automation.
I have the following path.
/home/hassan/Dyna/ProjectSimulation
in modeling the project i have 3 folders
friction time force
as
/home/hassan/Dyna/ProjectSimulation/friction
Now I have the friction1.txt file in this friction folder, and I want to copy it to ProjectSimulation.
Is it possible to avoid the full path and just one step down?
Also, if I need to copy this friction1.txt file to a folder, is there a way to avoid the full path.
I mean, I have a subroutine, but it depends on the path, whenever I run it, I have to run in the same folder and then copy my results so that I can run only one instance of my simulation.
Experts, please call me.
PS: This is part of a 600-line shell.
source share