I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Then your organize.sh can move to ~/bin/organize and start with a cd ~/Downloads || exit line to make it work in the correct download directory. I often drop the .sh extension on common utility scripts myself, though it doesn't really matter as long as it has a shebang.
This might be simpler as a function or a script held in your
bin
directory.If you include the following in your
bashrc
or equivalent, you can drop scripts into~/bin
and the system will check there first.Then your
organize.sh
can move to~/bin/organize
and start with acd ~/Downloads || exit
line to make it work in the correct download directory. I often drop the.sh
extension on common utility scripts myself, though it doesn't really matter as long as it has a shebang.Thank you. I did not know about this. Will add it to V2