Finding the $PATH to enlightenment

I was trying to make some shortcuts for common tasks and so I decided to use my home directory /bin to keep some common commands as shortcuts.

This is the contents of one of the files I created to find files in the cache. It is copied to /bin and that way I don't have to use the full commands and I don't have to use the ./command notation. $1 and $2 are command line passed variables like argv[].

sudo apt-cache search $1 | grep $2

I had to do "mkdir bin" as it didn't exist. And I added this to ".bashrc". It should be noted that the separator there is COLON and not SEMI-COLON.


So it works and I am enlightened.


Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen