diff --git a/README.md b/README.md index 4f92b6a..d257295 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # src-ed -Source code samples for various languages - hello name-your-language world! - +Source code samples for various languages - hello "name-your-language" world! +The subdirectory "misc-tools" contains miscellaneous utilities that may +be of interest or help to a programmer. diff --git a/sizeofchk/Makefile b/misc-tools/sizeofchk/Makefile similarity index 100% rename from sizeofchk/Makefile rename to misc-tools/sizeofchk/Makefile diff --git a/sizeofchk/README.md b/misc-tools/sizeofchk/README.md similarity index 100% rename from sizeofchk/README.md rename to misc-tools/sizeofchk/README.md diff --git a/sizeofchk/sizeofchk.c b/misc-tools/sizeofchk/sizeofchk.c similarity index 100% rename from sizeofchk/sizeofchk.c rename to misc-tools/sizeofchk/sizeofchk.c diff --git a/misc-tools/what b/misc-tools/what new file mode 100755 index 0000000..61d4528 --- /dev/null +++ b/misc-tools/what @@ -0,0 +1,12 @@ +#!/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