how to assign variable in shell script
问题 I have below shell script code which is working fine. #!/bin/sh run() { cd /tmp/in/current java \ -Dlog4j.configurationFile=/tmp/in/logging/log4j2_Importer.xml \ -Djava.security.egd=file:///dev/urandom \ -classpath /tmp/in/runner/lib/*:/tmp/in/lib/* \ baag.runner.Application \ --config /tmp/in/config/import.dev.properties.TODO \ --workflow import \ --inputDir "$1" } dev_path="/data/etl-dev/in/eurex" simu_path="/data/etl-simu/in/eurex" mode=$1 case "$mode" in "$dev_path" | "$simu_path" ) run "