Trying to remove a
# sign from a single line in a file. The line is currently
if [[ '$grep tvservice /etc/rc.local' =~ ^# ]] ; then sed -i '/^#.* tvservice /s/^#//' /etc/rc.local ; else echo 1 fi
Trying to test if this command will work before I add it to a script. When I run it I get a
> symbol and have to stop execution with Ctrl+C
Am I not passing a string to
grep correctly or what? I'm fairly new to this.