ファイルから特定のパターンを抽出しようとしています。ファイルの内容:
--------some other command in here----------
<tr>
<td>someWords</td>
<td>anotherWords</td>
</tr>
--------some other command in here-----------
the <tr>...</tr> patter occur again
ファイルからtrパターンを抽出しようとします
私が書くシェルスクリプトで:
入力を読む
grep '<tr>\n<td>[A-Za-z0-9,<,>,/]</td>\n<td>[A-Za-z0-9,<,>,/]</td>\n</tr>
ただし、このコマンドは機能しません。何か案が?どうも