Good morning to everybody!
I have created a super-simple script that delete several files in the folder:
#/bin/bash rm *.ext1 *.ext2 file1.txt file2.txt
When I execute the script using the shell all works fine. But I’d like to be able to double-click on the script to execute it…and this actually works but it is like the script is executed in another folder and then the answer I get is a list of “rm -filename- : No such file or directory”.
How can I modify my script in order to tell him to be executed in the folder in which it is located? NB: I don’t know a priori the folder path, then I cannot specify the full path!