Mail Archives: djgpp/2000/11/30/21:36:39
Since SCCS isn't distributed these days, I made up my own what script
using grep. It works under linux and djgpp using bash. But it does not
work unless the program files contain strings of this sort::
char *whatid_string="\n@(#) What is this messy id stuff (c) dummy AT domain DOT com \n";
#!/bin/bash
# This may not work with csh
# Don't even THINK about running this from DOS
#@(#) What 18 OCT 2000
if test $# -eq 0
then echo "Need file name."
echo "Usage: $0 <filename>"
exit 1
fi
grep -a "@(#)" $1|while read a b
do
# echo $a
echo $b
done
--
|----------------------------------|
| Felix Tilley |
| Remove Percent Signs for Email |
| ftilley@%azstarnet.%%%com |
|----------------------------------|
- Raw text -