Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SEDについてサポートが必要です。
私はファイルからいくつかのファイルを抽出しようとしています。必要なすべての単語はこのように始まります。
39;,bugs.pr~%3D~'TEXT23
たとえば、TEXT23を取得する必要があります。
私がしたことは、最初に、私のフラグであるIDEXの39;、bugs.pr〜%3D〜'を変更し、次にIDEXを検索して、その単語から8文字を抽出します。
次のsedコマンドは、必要なテキスト以外のすべてのテキストを削除する可能性があります。
sed 's/^39;,bugs.pr~%3D~'//p;d' file