I try to extract a particular pattern from a file. the file content:
--------some other command in here----------
<tr>
<td>someWords</td>
<td>anotherWords</td>
</tr>
--------some other command in here-----------
the <tr>...</tr> patter occur again
I try to extract the tr pattern from the file
in the shell script I write:
read INPUT
grep '<tr>\n<td>[A-Za-z0-9,<,>,/]</td>\n<td>[A-Za-z0-9,<,>,/]</td>\n</tr>
However, this command doesnt work. Any idea? thx
see example: