[BACK]Return to netstart CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/netstart between version 1.100 and 1.101

version 1.100, 2004/12/19 15:37:58 version 1.101, 2004/12/30 17:33:59
Line 2 
Line 2 
 #  #
 #       $OpenBSD$  #       $OpenBSD$
   
   # Strip comments (and leading/trailing whitespace if IFS is set)
   # from a file and spew to stdout
   stripcom() {
           local _file="$1"
           local _line
   
           {
                   while read _line ; do
                           _line=${_line%%#*}              # strip comments
                           test -z "$_line" && continue
                           echo $_line
                   done
           } < $_file
   }
   
 # Returns true if $1 contains only alphanumerics  # Returns true if $1 contains only alphanumerics
 isalphanumeric() {  isalphanumeric() {
         local _n          local _n

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101