私のファイル:
"DocumentCreationDate="2019-07-15T23:56:31" SampleID="1" entClassID="65535" ClientID="0" CardID="11209797""
パターンを把握したいです。
CardID="11209797"
" "の間の数字は異なる場合があります。
使用されたコマンド:egrep -o CardID='\"[^]"*]'
出力: CardID="1
希望の出力: CardID="11209797"
ベストアンサー1
この試み、
grep -o 'CardID="[^"]*"' file
CardID="11209797"