Script to quickly go to a particular directory from a configured selection of paths.
To run this script, one must execute it via 'source'. A dot is needed first, then a space followed by the script name.
Usage: . xl_goto.sh [number selection] 1) Backup 2) Others Report bugs to: firstname.lastname@example.org
number selection - Given the following sample items
1) Backup 2) Others
User must select a number '1' or '2' without the quotes. Then press enter.
A configuration "xl_goto.cfg" file is needed. This is where we configure our desired bookmarks.
The format of the configuration is as follows. For every row
A - Is the item selection. When script is executed, this is the input that is needed to go to a particular directory.
B - This is the display label
C - This is the actual path where the script will take you
Enhancements may take some time, I know it is easy but given that the author is just updating the code on a per need basis. All mentioned enhancements are noted below for future reference so that the author may not forget.
- Validate paths