Apr-11-2022, 11:36 PM
Hi all,
I want to pass a variable to this command :
How can I do that?
I tried:
But didnt work.
I want to pass a variable to this command :
1 2 |
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 ); |
I tried:
1 2 |
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 ); |