10 lines
214 B
Bash
Executable File
10 lines
214 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 "$@" | grep -E -v '^[ ]*#|^[ ]*$' | sed 's/[ ][ ]*/ /g'|\
|
|
sed 's/ $//'
|