Tricks

Links.

ln -s place_linking_to name

Copying a directory without following links.

gtar -cf - directory | (cd place_to_go; gtar -xf -)

Displaying results from other machines to yours.

bofh% xhost + sob
bofh% rsh sob
sob% setenv DISPLAY bofh:0.0

Printing options to the qms (qpr)

bofh% qpr -d bob	 Print duplex 
bofh% qpr -t bob	 Print tumble duplex 
bofh% qpr -ls bob	 Print landscape 

Perl in-line programs.

perl -pi.bak -e "s/\r//g" *.bob	 Remove the ^M from all *.bob files 
				and save a backup copy of the file as .bak 
perl -pi.bak -e "s/bob/fred/g" *.bob	 Change all occurences of bob
					to fred in the *.bob files and save 
					a .bak copy. 

Display the middle of a file

This assumes a file of 100 lines
bofh% tail -66 bob | head -33 | more

Handy tcsh stuff

Handy directory movement

Wildcards and Regular Expressions

Questions, comments, suggetions or corrections to jot@tmp.medtronic.com
http://www.bofh.com/unix-class/tricks.html