I have two pieces of code that work independently, but not together. I need to put the if statement inside the <Command_To_Be_Ran>. Any ideas to how i can get this to work?
for i in t{1..2}; do ssh -qex -t $i 'echo <Sudo_Password> | sudo -S <Command_To_Be_Ran>' done
and
if (( $(grep -o "fips=1" /etc/default/grub | wc -l) > 1 )); then sed -i 's/ fips=1//' /etc/default/grub fi
if grep -q "fips=1" /etc/default/grub
, which uses the grep exit status instead of counting matched lines withwc