Posts Tagged ‘programming’

stupid *nix tricks

Sunday, November 8th, 2009

I am not a *nix guru. I am in fact, a long, long way from being a *nix guru. But I really enjoyed using a little trick I cooked up while grading today, that goes like this:

lp -d "PRINTER_NAME" */commonly_named_directory/*

See, I put every students submision under their name, then in a folder for the assignment (with my name) then their file name (which varies). So that piece of BASH there prints every file in the assignment folder from every student in the directory. How cool is that?

Okay, so it isn’t that cool. But it saved me a few minutes.