{"id":9046,"date":"2023-02-05T09:41:54","date_gmt":"2023-02-05T00:41:54","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=9046"},"modified":"2023-09-08T06:49:34","modified_gmt":"2023-09-07T21:49:34","slug":"linux%e3%81%a7tab%e5%8c%ba%e5%88%87%e3%82%8a%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%a1%a8%e7%a4%ba%e4%bd%8d%e7%bd%ae%e3%82%92%e6%8f%83%e3%81%88%e3%82%8b%ef%bc%81%ef%bc%88expand","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/9046","title":{"rendered":"Linux\u3067TAB\u533a\u5207\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u63c3\u3048\u308b\uff01\uff08expand\uff0funexpand\uff09"},"content":{"rendered":"<p>Linux\u3067TAB\u533a\u5207\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5404\u5217\u306e\u5148\u982d\u3092\u6dfb\u3048\u3066\u8868\u793a\u3057\u307e\u3059\uff01<br \/>\n<!--more--><\/p>\n<h2>\u5217\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u63c3\u3048\u308b\uff01\uff08expand\uff09<\/h2>\n<p>expand\u30b3\u30de\u30f3\u30c9\u306f\u3001TAB\u533a\u5207\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5358\u4f4d\u306e\u533a\u5207\u308a\u4f4d\u7f6e\u306b\u63c3\u3048\u308b\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u3001\u300c8\u300d\u3067\u3059\u3002\u5143\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u3068\u3057\u307e\u3059\u3002\u5217\u306f\u3001\u300cTAB\u300d1\u6587\u5b57\u3067\u533a\u5207\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat sample.txt\r\n192.168.1.1\tlinux01\r\n192.168.1.2\tlinux02\r\n192.168.1.11\twindows01\r\n192.168.1.12\twindows02\r\n192.168.1.13\twindows03\r\n<\/pre>\n<p>\u5024\u3092\u5c11\u3057\u3064\u3065\u5909\u3048\u3066\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,6,13,19,25,31,37,43,49]; title: ; notranslate\" title=\"\">\r\n$ expand -t 1 sample.txt\r\n192.168.1.1 linux01\r\n192.168.1.2 linux02\r\n192.168.1.11 windows01\r\n192.168.1.12 windows02\r\n192.168.1.13 windows03\r\n$ expand -t 2 sample.txt\r\n192.168.1.1 linux01\r\n192.168.1.2 linux02\r\n192.168.1.11  windows01\r\n192.168.1.12  windows02\r\n192.168.1.13  windows03\r\n$ expand -t 3 sample.txt\r\n192.168.1.1 linux01\r\n192.168.1.2 linux02\r\n192.168.1.11   windows01\r\n192.168.1.12   windows02\r\n192.168.1.13   windows03\r\n$ expand -t 4 sample.txt\r\n192.168.1.1 linux01\r\n192.168.1.2 linux02\r\n192.168.1.11    windows01\r\n192.168.1.12    windows02\r\n192.168.1.13    windows03\r\n$ expand -t 5 sample.txt\r\n192.168.1.1    linux01\r\n192.168.1.2    linux02\r\n192.168.1.11   windows01\r\n192.168.1.12   windows02\r\n192.168.1.13   windows03\r\n$ expand -t 6 sample.txt\r\n192.168.1.1 linux01\r\n192.168.1.2 linux02\r\n192.168.1.11      windows01\r\n192.168.1.12      windows02\r\n192.168.1.13      windows03\r\n$ expand -t 7 sample.txt\r\n192.168.1.1   linux01\r\n192.168.1.2   linux02\r\n192.168.1.11  windows01\r\n192.168.1.12  windows02\r\n192.168.1.13  windows03\r\n$expand -t 8 sample.txt\r\n192.168.1.1     linux01\r\n192.168.1.2     linux02\r\n192.168.1.11    windows01\r\n192.168.1.12    windows02\r\n192.168.1.13    windows03\r\n$ expand -t 20 sample.txt\r\n192.168.1.1         linux01\r\n192.168.1.2         linux02\r\n192.168.1.11        windows01\r\n192.168.1.12        windows02\r\n192.168.1.13        windows03\r\n<\/pre>\n<p>\u7d50\u679c\u306f\u6a19\u6e96\u51fa\u529b\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u300c-t 8\u300d\u306e\u5834\u5408\u306f\u3001\u5909\u66f4\u304c\u306a\u3044\u305f\u3081\u304c\u300cTAB\u300d\u304c\u7a7a\u767d\u306b\u7f6e\u304d\u63db\u308f\u3089\u305a\u3001\u300cTAB\u300d\u306e\u307e\u307e\u3067\u3057\u305f\u3002\u300cTAB\u300d\u3092\u300c\u30b9\u30da\u30fc\u30b9\u300d\u306b\u5909\u63db\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u306f\u306a\u304f\u3001\u3042\u304f\u307e\u3067\u3082\u8868\u793a\u306e\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3068\u5272\u308a\u5207\u3063\u305f\u307b\u3046\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>\u300cTAB\u300d\u3092\u300c\u30b9\u30da\u30fc\u30b9\u300d\u306b\u7f6e\u304d\u63db\u3048\u308b\uff01<\/h2>\n<p>\u300cexpand\u300d\u306e\u53cd\u5bfe\u306e\u52d5\u4f5c\u3092\u3057\u305d\u3046\u306a\u300cunexpand\u300d\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u306e\u3067\u3001\u52d5\u4f5c\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6570\u5b57\u306f\u3001\u5148\u982d\u306e\u30b9\u30da\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat sample_unexpand.txt \r\n 1\r\n  2\r\n   3\r\n<\/pre>\n<p>\u300c\u7a7a\u767d\u6587\u5b57\u300d1\u6587\u5b57\u3092\u300cTAB\u300d\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ unexpand -at 1 sample_1.txt\r\n$ unexpand -t 1 sample_unexpand.txt \r\n\t1\r\n\t\t2\r\n\t\t\t3\r\n<\/pre>\n<p>\u300c\u7a7a\u767d\u6587\u5b57\u300d2\u6587\u5b57\u3092\u300cTAB\u300d\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ unexpand -t 2 sample_unexpand.txt \r\n 1\r\n\t2\r\n\t 3\r\n<\/pre>\n<p>\u300c\u7a7a\u767d\u6587\u5b57\u300d\uff13\u6587\u5b57\u3092\u300cTAB\u300d\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ unexpand -t 3 sample_unexpand.txt \r\n 1\r\n  2\r\n\t3\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>expand\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b\u306f\u3001\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30c7\u30fc\u30bf\u306e\u9577\u3055\u306e\u6700\u5927\u9577\u3088\u308a\u5927\u304d\u3044\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u304c\u898b\u3084\u3059\u304f\u6574\u5217\u3055\u308c\u307e\u3059\u3002unexpand\u30b3\u30de\u30f3\u30c9\u306f\u3001\u5148\u982d\u306e\u30b9\u30da\u30fc\u30b9\u3092\u300cTAB\u300d\u306b\u5909\u66f4\u3059\u308b\u306e\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/9227\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30c6\u30ad\u30b9\u30c8\u304a\u3088\u3073\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30c6\u30ad\u30b9\u30c8\u304a\u3088\u3073\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u51e6\u7406\u3059\u308b\uff01<\/div><div class=\"substr\">Linux\u3067\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304a\u3088\u3073\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H5qkUu\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51ZPkoBGdZL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067TAB\u533a\u5207\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5404\u5217\u306e\u5148\u982d\u3092\u6dfb\u3048\u3066\u8868\u793a\u3057\u307e\u3059\uff01<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110],"tags":[1113,282,1111,1114,1112],"class_list":["post-9046","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-processing","tag-expand","tag-linux","tag-tab","tag-unexpand","tag-1112"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=9046"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9046\/revisions"}],"predecessor-version":[{"id":14934,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9046\/revisions\/14934"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=9046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=9046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=9046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}