src-ed/misc-tools/what
Ed Braaten 787c1866e2 Added "what" script. Moved miscellaneous tools (sizeofchk, what)
into their own "misc-tools" sub-directory and updated README.md to
reflect the change.
2015-05-17 08:55:00 -07:00

12 lines
261 B
Bash
Executable file

#!/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