How do I pass arguments when launching bash script so that specific lines are executed within the script
For example (createfile.sh):
#!/bin/bash
export CLIENT1_DIR="<path1>"
export CLIENT2_DIR="<path2>"
chef-solo -c solo.rb -j client1.json
chef-solo -c solo.rb -j client2.json
Then
$ ./createfile.sh client1
should only execute client1 specific lines, and replacing it with client2 should execute only client2 specific lines.