am 09.12.2003, 14:21, schrieben Sie:
Hallo Yann,
* Yann schrieb am 09.12.2003:
Hallo suse-linux liste,
ich verwende in einem Script:
grep -o "[[:alnum:]_-]\+.PDF" $logfile > $errfiles
[doppelte rausfiltern]
grep -o "[[:alnum:]_-]\+.PDF" $logfile | sort -u > $errfiles
Vorsicht: ... | uniq > ... geht prinzipiell nicht, da uniq eine bereits sortierte Eingabe erwartet.
Hallo suse-linux, supi... fertig sieht das jetzt so aus: [veriablendeklaration] if [ -f /tmp/ftp.job ] then # echo "another Session active ?!" exit 1 else # echo "running ftp transfer..." echo 1 > /tmp/ftp.job echo quit >> $batchfile # cd $basispfad $ncpath/ncftp -u $username -p $password $hostname < $batchfile 2>$logfile grep -o "[[:alnum:]_-]\+.PDF" $logfile >> $errfiles sort -u $errfiles > /tmp/err.tmp uniq /tmp/err.tmp > $errfiles # rm -f $batchfile echo "done" rm -f /tmp/ftp.job fi :-) -- MfG Yann Wissenbach - Administration/Support compass Gesellschaft fuer Medientechnologie mbH Robert-Koch-Str. 35 D-55129 Mainz mail: y.wissenbach@compass-online.de www : http://www.compass-online.de fon : +49 6131 90 63 - 121 fax : +49 6131 90 63 - 222