cdesktopenv/cde/admin/IntegTools/dbTools/uncomment

10 lines
210 B
Bash
Executable File

#! /bin/sh
#
# Script to remove comments and blank lines from ".lst" files
# and coalesce multiple blanks/tabs into a single blank
#
cat $@ | egrep -v '^[ ]*#|^[ ]*$' | sed 's/[ ][ ]*/ /g'|\
sed 's/ $//'