This script will convert C-style comments into C++ style comments using sed

#!/bin/csh -f

# Will modify C programs comments to C++ comments
# Ex: /* stuff */ becomes //stuff

# Check the command line arguments

if ($#argv == 0) then
    echo "usage: comments file1 file2 ..."
    exit 1
endif

# Do the conversion using sed

foreach f ($argv)
    sed -e '/\/\*.*\*\/ *$/s/\/\*/\/\//' -e '/\/\/.*\*\/ *$/s/\*\///' $f > tempfile
    mv tempfile $f
end
 

This script will check the spelling of a file specified from the command-line

#!/bin/csh -f

if ($#argv != 1) then
    echo "usage: myspell file-name"
    exit 1
endif

tr -c A-Za-z '\012' < $1 | tr A-Z a-z | sort | uniq \
| diff - /usr/dict/words | egrep '<' | tr -d '<' | tail +
 

This script converts file extensions in the working directory

#!/bin/csh -f

# Script to convert file extension in working directory
# to file extension specified.

# i.e.- reext ext-to-replace ext-to-replace-with

# Check arguments
if ($#argv != 2) then
 echo "usage: reext file-ext file-ext"
 exit 1
endif

# Search working directory for files.

foreach f (*$1)
    set file = $f:r$2
    mv $f $file
end