私はhtmlファイル "Servernick"内からすべてのサーバ名(すなわちsv012-cali)を分離しようとしています:下の行コードで "sv012-cali"私はそれが引用符grepコマンドライン、linux
cat smtest.html | tr '"' '\n' | grep "^Servernick":"" | cut -d '"' -f 2
それを投げたHTMLデータファイルのスニペット"関係":0}、{ "ID" 415804" 、 "Servernick": "sv012-カリ"、 "レベル":「3 "
解析しているファイルのスニペットを表示すると便利です。 –
この質問は、superuser.comまたはunix.stackexchange.com –