1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

curl の結果の JSON を jq で加工して指定文字を fzf で選択をしたい

Posted at

セットアップ

~/Homesteadにて
vagrant up
vagrant ssh
sudo apt-get install jq
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

実施

  • JSON の結果を渡す
curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=1
' | jq '.' | fzf
  • こんな感じに

emai」にて絞り込まれております。

test.jpg

最初は Windows (Git Bash) でやろうとしてました

当初は peco で、うまくいかず fzf、ff... と試しておりましたが
curl の結果がうまく渡らず挫折しました。

Vagrant でためしたところあっけなく完了・・・

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?