openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit dc788cd7f7806d4f10bdd79a0761fa8754050716
parent 4379de249c05e4d992e68ef20c868199fada7ff8
Author: dankert <devnull@localhost>
Date:   Wed,  2 Nov 2005 22:13:40 +0100

Nur auf stdout schreiben.

Diffstat:
doc/examples/maintenance/sort-lang.sh | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/doc/examples/maintenance/sort-lang.sh b/doc/examples/maintenance/sort-lang.sh @@ -6,19 +6,17 @@ if [ ! -f $1 ]; then echo "usage: $0 <filename>" echo "" echo "This script is sorting a Openrat language file in alphabetic order." - echo "Just give it the filename of the language file." + echo "Just give it the filename of the language file and it puts the sorted file on stdout." echo "" exit fi -if [ ! -w $1 ]; then - echo "$1 is not writable" +if [ ! -r $1 ]; then + echo "$1 is not readable" exit fi -cp $1 $1.orig - -cat $1.orig|grep "^;" > $1 -cat $1.orig|grep "^;" -v|sort >> $1 +cat $1|grep "^;" +cat $1|grep "^;" -v|sort