Hello,
I am wondering if there is a way in bash to export an executable path using regular expressions. What I am attempting to do is organize all my executable code into folders but don't want to add each folder to the executable path in my .bash_profile when I create a new one.
Can anyone tell me if it is possible to add something like the following example to my .bash_profile:
Code:
PATH=/home/user/scripts/*;
export PATH
So that I could have execute a file that is possibly located in
Code:
/home/user/scripts/some_other_folder/some_script.pl