alias mathlab setenv DISPLAY mathlab.cit.cornell.edu:0
alias lsh 'ls -Flagt \!* | head'
@ total = 0 @ total = $total + 1 # spacing is important
@ total = 0 foreach i ( * ) ? @ total = $total + `wc -l $i | awk '{print $1}'` ? end echo $total
ls -al | awk '{print $3 " " $4}'
setenv TMP `pwd`
cdfind . -name '*.ps' -print
cdfind . -name '*.ps' -exec gzip {} \;
foreach i (*) if (-d $i) du -s $i end
echo -n "(YES or no)? " set ans = $< if ( $ans == "" || $ans =~ [yY]* ) then set go = 1 else set go = 0 endif
foreach i (*.tex) cp $i $i.res end
polygon% mail sam Subject: Sam, Below is a sample data file for a cube: ~r cube "cube" 14/97
sample: sample.c sample.h cc sample.c -o sample -lm
setenv DISPLAY mathlab.cit.cornell.edu:0
xhost + or xhost + machine_running_remote_programon mathlab.cit.cornell.edu to give machine_running_remote_program permission to display to mathlab.cit.cornell.edu.
#!/bin/csh -f #USAGE: sub_sed source_pattern replacement_pattern < infile > outfile sed "s/$1/$2/g"
cd directory tar -cvf /tmp/dir.tar .(Note . is an abbreviation in csh for the current directory.)
tar -tvf dir.tar
tar -xvf dir.tar
stty erase hit_backspace_or_delete_as_you_prefer
tset
setenv TERM xterm or setenv TERM vt100
ps -aux | grep username on Linux machines or Suns or ps -efl | grep username on an SGI.
lpq
Last Update: August 20, 2001