
중복 쉘 스크립트 이름 찾아서 실행
·
서버작업/Shell Script
모든 쉘 스크립트 이름 찾아서 실행 #!/bin/bash walletname='ls ./wallet_*.sh' case "$1" in start) # #월렛 스크립트 전부 시작 # for eachfile in $walletname do echo "$eachfile start"; sh $eachfile start; done exit $?;; stop) # #월렛 스크립터 전부 중지 # for eachfile in $walletname do echo "$eachfile stop"; sh $eachfile stop; done exit $?;; *) echo "all_wallet.sh start || stop"; exit 1;; esac