A chronological documentation test project, nothing serious, really!

17 Feb 2007 Using at

(Set XMMS to play wakeup.ogg at 6am tomorrow morning)

at 6am tomorrow
at> xmms ~/music/wakeup.ogg

job 6 at 2003-10-31 06:00

(At 11:30 pm today, start an install of mozilla)

at 11:30 pm today
at> emerge update mozilla

job 7 at 2003-10-30 23:30

Now there are two jobs scheduled which will be run ‘at’ the specified times. To view a list of jobs you’ve scheduled, use atq. If you decide you don’t want a job to run, you can can use the atrm command.

Removing a previously scheduled job

(Remove the ’emerge’ job we scheduled for 11:30pm)


6 2003-10-31 06:00 a david
7 2003-10-30 23:30 a david
% atrm 7
% atq
6 2003-10-31 06:00 a david


Posted by

17 Feb 2007 Listing files by date, ISO style

ls -lgot --time-style=long-iso


Posted by

17 Feb 2007 Using nl to number lines

(basic use)
% nl filename

(Include empty lines)
% nl -ba filename

(Left justified number column)
% nl -nln filename


Posted by

17 Feb 2007 Convert everything in the current directory from upper- to lowercase.

A bash script to convert everything from upper- to lowercase.
for n in *; do mv $n `echo $n | tr '[:upper:]' '[:lower:]'`; done

Tags: ,

Posted by

09 Feb 2007 someprog > /dev/null 2>&1

The first part, “> /dev/null” means send standard output to the ‘bit bucket” or in other words, throw it away.

The second part, “2>&1” means “redirect standard error (2) to the same place as standard outout (1.)

Tags: , ,

Posted by