8 Jul
2002
8 Jul
'02
10:43
Hi, Am 08.07.2002 (12:17) schrieb Daniel Seuthe:
Der einzige Nachteil ist, das auch ein Blank als Trennung verwendet wird.
Lösung:
cat $file|while read zeile ; do echo "***${zeile}" ; done
Also würde das Skript lauten: ,----[ add.sh ]- | #! /bin/sh | | file=$1 | pattern=$2 | outfile=$3 | | cat $file | while read line ; do echo "$pattern $line" >> $outfile ; done `---- Ciao Sascha -- http://www.livingit.de http://www.mobile-bookmarks.info http://www.programmers-world.com linux at programmers-world dot com