Overview
| Comment: | Now strips blank lines as well |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
3cc2fa6c1201408c9d0d042f3cfa3e9e |
| User & Date: | gawthrop@users.sourceforge.net on 1998-11-18 11:30:19.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
1998-11-18
| ||
| 11:34:24 |
Cleaned up to: work properly for no globals no need to repeat las global check-in: 630e6a8f42 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 11:30:19 | Now strips blank lines as well check-in: 3cc2fa6c12 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 11:29:43 | Initial revision check-in: cc4607c407 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/strip_comments
from [f0be8702cf]
to [8b2e61fa07].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#! /bin/sh
######################################
##### Model Transformation Tools #####
######################################
# Bourne shell script: strip_comments
# Strips comments from mtt text files
# P.J.Gawthrop July 1997
# Copyright (c) P.J.Gawthrop, 1997.
sed 's/%/#/' |\
awk --field-separator '#' '{if (length($1)>0) print $1}' |\
awk '{if (NF>0) print $0}'
| > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#! /bin/sh
######################################
##### Model Transformation Tools #####
######################################
# Bourne shell script: strip_comments
# Strips comments from mtt text files
# P.J.Gawthrop July 1997
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################
sed 's/%/#/' |\
awk --field-separator '#' '{if (length($1)>0) print $1}' |\
awk '{if (NF>0) print $0}'
|