I'm trying to get the Bash script to read a text file and print out all the lines in it. I've successfully accomplished that by doing:
while read line; do
$echo line
done < main.txt
However, I want it to ignore any lines in between /*
and */
. If I have a text file that looks like this:
hi
hru
/*
look at my multiline comment function OoOoOoOh
*/
good wbu
im fine
It will print out:
hi
hru
good wbu
im fine