I have the following input:
/ > blablabla
title 1
-------
title 2
-------
...
-------
title n
/ >
Now i need to read only the lines that contain titles, so i must remove the —— and / >.
I managed to exclude all the —– with:
if [ "$LINE" != "-------" ]
But the problme is to remove the two lines:
/ >blablabla
/ >
(where blablabla could possible change). I want to exclude all the strings thata start with: “/ >”
But i tried in several ways without success.
With:
if [[ $LINE!=/* ]]
i had no success.
What is the correct way to obtain that result?
Thanks in advance.
1 Answer