Apr-11-2022, 11:36 PM
Hi all,
I want to pass a variable to this command :
I tried:
I want to pass a variable to this command :
VARIABLE=12 v_num_final_distinct_grid_disks_per_cell_and_dg = subprocess.check_output("cat /tmp/logall | sort -u | grep -v VARIABLE", shell=True);How can I do that?
I tried:
VARIABLE=12 v_num_final_distinct_grid_disks_per_cell_and_dg = subprocess.check_output("cat /tmp/logall | sort -u | grep -v %s",VARIABLE, shell=True);But didnt work.