I am trying to comment lines of source so that something like LANG = 'ENG'; becomes // LANG = 'ENG';
There are over a thousand lines in the source file and 'ENG' is not unique but the entire line IS. I gave up on wild carding the spaces and just tried the entire extant line 'as-is' but no joy. Something like (commented shell)--
enter code here
#!/bin/bash
#if [ -n "$5" ] ; then
#if [ "$5" == "ENG" ] ; then
sed -i "s/' LANG = '\''ENG'\''/\/\/' LANG'
= '\''ENG'\''/" vc.pas > vc.out
#fi
#fi
So it reduces down to a single line. No joy whatever I try. TIA ! Howie