Changeset 59 for confman/confman
- Timestamp:
- 04/06/2006 20:41:27 (6 years ago)
- File:
-
- 1 edited
-
confman/confman (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
confman/confman
r58 r59 1 #! / usr/local/bin/bash1 #! /bin/bash 2 2 # 3 3 # confman provides a command-line interface to Rescomp's server configuration … … 504 504 local count 505 505 506 # Let's see if we can read the file as ourself: 507 if [ ! -r $file ] ; then 508 usefile=`mktemp -t confman` 509 sudo cat $file > $usefile 510 else 511 usefile="$file" 512 cat $file > $usefile 513 fi 514 506 515 # Put all non-alphanumerics into a file 507 awk '{print $1}' $file | egrep -o "^[^-_A-Za-z0-9]" > $tmpfile 508 for char in `cat $file | sort | uniq` ; do 516 awk '{print $1}' $usefile | egrep -o \ 517 "^[^-_A-Za-z0-9]" > $tmpfile 518 519 for char in `cat $tmpfile | sort | uniq` ; do 509 520 count=`egrep -o "\\$char" $tmpfile | wc -l` 510 521 if [ $count -gt $biggestcount ] ; then
Note: See TracChangeset
for help on using the changeset viewer.
