src-ed/misc-tools/what

13 lines
261 B
Text
Raw Permalink Normal View History

#!/bin/bash
#
# what - get SCCS identification information
#
# SCCS was the source code control system distributed
# with AT&T Unix System III and V.
#
for i in "$@";
do
echo "$i:"
strings "$i" | grep -e '@(#)' | sed 's/^.*[@][(][#][)]\(.*\)/ \1/'
done