Script 1:
#!bin/csh
set option = $<
switch ($option)
case 1 : ...
breaksw
case 2 : ...
breaksw
endsw
script 2 :
#!/bin/bash
Now how to access "option: variable defined in script 1 , so that based on option content , i would write if-elseif condition ?
script2
from insidescript1
and place the$option
shell variable on the scrpt2's argument list. – Rakesh Sharma Aug 17 '20 at 11:17