ニュースリンクの作り方 - izudon/izudon.github.io GitHub Wiki

  • nkf(新しめのバージョン)が必要。
  • a b c という3つのファイルをカレンとディレクトリに作ります。
  • sed の最初のコマンドのスペースはタブ文字です。C-v C-i で入力します。
$ tee a | nkf -WwMQ | sed 's/=$//g' | tr = % > b
$ paste a b | sed -e 's|^|/\ \[|' -e 's|\t|\]\(https://www.google.co.jp/search\?tbm\=nws\&q\=|' -e 's|$|)|' > c