#!/bin/sh # RunAll.sh - Execute all *.sh scripts in current directory (except this one) d=`date "+%Y%m%d"` for s in `ls *.sh` do test `basename $s` = `basename $0` && continue echo "Executing script '$s'..." log1=`basename $s .sh`-${d}.log log2=`basename $s .sh`-${d}.err ./$s > $log1 2> $log2 done
cat foo.bat | sed 's:\^$:\\:' > foo.sh
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.