{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/yank/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/yank/", "feed_url": "https://matoken.org/blog/tag/yank/feed/json/", "language": "ja", "title": "yank – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=3155", "url": "https://matoken.org/blog/2021/03/30/yank-to-seamlessly-select-the-result-of-standard-input-and-copy-it-to-the-clipboard/", "title": "\u6a19\u6e96\u5165\u529b\u306e\u7d50\u679c\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u9078\u629e\u3057\u3066\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3059\u308b\u300cyank\u300d", "content_html": "
\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u306e\u6a19\u6e96\u5165\u529b\u306e\u7d50\u679c\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u9078\u629e\u3057\u3066\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304f\u308c\u308b yank \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u77e5\u308a\u307e\u3057\u305f\uff0e
yank\u306f\u5404\u7a2e\u74b0\u5883\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\uff0e
\nDebian sid amd64 / Ubuntu 21,04 amd64 / Raspberry Pi OS buster armhf \u3067\u306f yank \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e
$ sudo apt install yank (1)\n$ yank (2)\nbash: yank: command not found\n$ dpkg -L yank | grep bin/ (3)\n/usr/bin/yank-cli\nyank \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165yank-cli \u306b\u306a\u3063\u3066\u3044\u308b\uff0e\u3068\u308a\u3042\u3048\u305a\u5c0e\u5165\u3067\u304d\u307e\u3057\u305f\u304c\uff0cDebian\u74b0\u5883\u3060\u3068 yank \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\uff0e\u4ed6\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u540d\u524d\u304c\u7af6\u5408\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067 yank-cli \u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e
\n\n\n\nThe binary is installed at /usr/bin/yank-cli due to a naming conflict.
\n
$ apt-file search /bin/yank\nemboss: /usr/bin/yank\nyank: /usr/bin/yank-cli\n\u7af6\u5408\u3057\u3066\u3044\u308b\u306e\u306f\u306a\u3093ds\u697c\u3068\u691c\u7d22\u3057\u3066\u307f\u308b\u3068 emboss \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u3088\u3046\u3067\u3059\uff0e
\n\n\n\n\n\u30e8\u30fc\u30ed\u30c3\u30d1\u5206\u5b50\u751f\u7269\u5b66\u30aa\u30fc\u30d7\u30f3\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30b9\u30a4\u30fc\u30c8
\n
\nEMBOSS \u306f\u3001\u5206\u5b50\u751f\u7269\u5b66\u306e\u30e6\u30fc\u30b6\u30b3\u30df\u30e5\u30cb\u30c6\u30a3 (\u4f8b: EMBnet) \u306e\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u305f \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306a\u89e3\u6790\u7528\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\u3053\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092 \u4f7f\u3046\u3053\u3068\u3067\u3001\u69d8\u3005\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u66f8\u304b\u308c\u305f\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3057\u305f\u308a\u3001 \u30a6\u30a7\u30d6\u304b\u3089\u914d\u5217\u30c7\u30fc\u30bf\u3092\u900f\u904e\u7684\u306b\u53d6\u5f97\u3057\u305f\u308a\u3082\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f \u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u771f\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u7cbe\u795e\u306b\u5247\u3063\u3066 \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u958b\u767a\u3057\u30ea\u30ea\u30fc\u30b9\u3067\u304d\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002 \u3055\u3089\u306b\u3001EMBOSS \u306f\u69d8\u3005\u306a\u914d\u5217\u89e3\u6790\u7528\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u30c4\u30fc\u30eb\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b \u7d71\u5408\u3055\u308c\u3066\u3044\u307e\u3059\u3002EMBOSS \u306f\u3001\u9577\u304f\u7d9a\u3044\u305f\u5546\u7528\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3078\u306e\u6d41\u308c\u3092 \u65ad\u3061\u5207\u3063\u305f\u306e\u3067\u3059\u3002
\u306a\u304b\u306a\u304b\u71b1\u305d\u3046\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u3088\u3046\u3067\u3059\uff0e
\n\u4f7f\u308f\u306a\u3044\u306a\u3089alias\u7b49\u3067yank\u306b\u5411\u3051\u3066\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e
\n\u3068\u308a\u3042\u3048\u305a\u5c0e\u5165\u51fa\u6765\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e
\n$ apt-cache search yank | yank-cli\nelpa-csv-mode - Emacs major mode for editing comma/char separated values\npython3-readlike - GNU Readline-like line editing module\nyank - interactively select and yank terminal output to stdout or xsel\napt-cache search \u306e\u7d50\u679c\u3092 yank \u3067\u53d7\u3051\u3066\u30ab\u30fc\u30bd\u30eb\u306a\u3069\u3067\u5358\u8a9e\u5358\u4f4d\u3067\u79fb\u52d5\u3057\u3066Enter\u3067\u9078\u629e\u3057\u305f\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\uff0e
\n\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u8cbc\u4ed8\u3051\u3092\u3059\u308b\u3068\u305f\u3057\u304b\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff0e
\n\u4f8b\u3048\u3070\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u30b3\u30d4\u30fc\u3057\u3066\uff0c $ sudo apt install \\`xsel\\` \u306e\u3088\u3046\u306b\u3057\u3066\u4f7f\u3046\u3068\u4fbf\u5229\u305d\u3046\u3067\u3059\uff0e
\u305d\u306e\u4ed6\u4fbf\u5229\u305d\u3046\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\uff0c -d \u304c\u3042\u308a\u307e\u3059\uff0ecut\u30b3\u30de\u30f3\u30c9\u306e-d\u3068\u540c\u3058\u3088\u3046\u306b\u30c7\u30ea\u30df\u30bf\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\uff0e
$ nkf -w mntemsadext00_rct.csv | yank-cli -d,
\u3053\u3093\u306a\u611f\u3058\u3067csv\u30d5\u30a1\u30a4\u30eb\u306b , \u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308b\u3068\uff0c\u5404\u9805\u76ee\u304c\u30b3\u30d4\u30fc\u3067\u304d\u307e\u3059\uff0e
\u3057\u304b\u3057\uff0cyank\u306f\u30da\u30fc\u30b8\u8de8\u304e\u304c\u51fa\u6765\u306a\u3044\u3088\u3046\u3067\u3059\uff0e\uff11\u30da\u30fc\u30b8\u76ee\u306e\u3082\u306e\u3057\u304b\u30b3\u30d4\u30fc\u3067\u304d\u307e\u305b\u3093\uff0e\u3053\u3046\u3044\u3046\u5834\u5408\u306fyank\u306b\u6e21\u3059\u524d\u306b\u30d5\u30a3\u30eb\u30bf\u3057\u3066\u3042\u3052\u308b\u3068\u3044\u3044\u3088\u3046\u3067\u3059\uff0egrep\u3084\uff0c\u6628\u65e5\u3053\u306eblog\u3067\u7d39\u4ecb\u3057\u305fyank\u3068\u540c\u3058\u4f5c\u8005\u306e\u300cpick\u300d\u3082\u3053\u3046\u3044\u3046\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059\uff0e
\n$ nkf -w mntemsadext00_rct.csv | grep \u7530\u4ee3 | yank-cli -d,`\n$ nkf -w mntemsadext00_rct.csv | pick | yank-cli -d,`\n\u306a\u306b\u304b\u306e\u7d50\u679c\u306e\u4e00\u90e8\u304c\u6b32\u3057\u3044\u3068\u304d\u306b\u4fbf\u5229\u305d\u3046\u3067\u3059\uff0e
\n$ dpkg-query -W yank pick\npick\t2.0.2-1\nyank\t1.1.0-2\n$ lsb_release -dr\nDescription:\tRaspbian GNU/Linux 10 (buster)\nRelease:\t10\n$ uname -m\narmv7l\n$ cat /proc/device-tree/model ;echo\nRaspberry Pi 3 Model B Rev 1.2\n
$ dpkg-query -W yank pick\npick\t2.0.2-1.1\nyank\t1.2.0-1\n$ lsb_release -dr\nDescription:\tDebian GNU/Linux bullseye/sid\nRelease:\tunstable\n$ uname -m\nx86_64\n