Quantcast
Channel: How can we avoid entering the path of every different file each time in a shell script? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2

How can we avoid entering the path of every different file each time in a shell script?

$
0
0

I have to submit a script for slurm. I should enter the directory path whenever I change the submit script path. for example if I am in folder1 I should write manually:

/home/job/folder1

if I want to use the script in folder2 I should write:

/home/job/folder2 

Is there any command to avoid making this change manually?

PS: I know I can use $pwd but I did not find the right way.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images