Compsci Rickroll

This will only be of interest to geeky types…
Rickrolling a 1B lecture

Handy bash script

You’ve installed something from package repositories, and, on invoking, it tells you to actually run a certain script first. The script fails because you’re behind a proxy server, but you don’t know where Aptitude put the script in order to edit it. You know it’s in your $PATH, but that’s a lot of directories…

Solution (assuming you use bash):

for inMyPath in `echo $PATH | sed -e 's/:/\\t/g'`;
do
find $inMyPath -name MISSING_FILE;
done

MISSING_FILE is the name of the script (or whatever) that you’re after. This is fairly trivial, I admit, but it took me a while to work out how to do it right (mainly sedding PATH correctly). I’m about to put it into a script of its own for future use. :)

It’s a bank holiday today

…and it would have been nice if I’d realised this this before going to every Natwest in town, wondering why they were closed in the middle of the day.

Ah well…

Follow

Get every new post delivered to your Inbox.