I have a file containing a list of filenames:
esocket.c
esocket.h
dockwin.cpp
dockwin.h
makefile
getblob
.
etc…
I am looking for a regular expression (preferably Unix syntax) to do the following:
- get lines that have .c, cpp and .h files
- get lines that don’t have a file extension.
gawk
output