{"type":"rich","title":"shuf\u30b3\u30de\u30f3\u30c9\u4fbf\u5229","height":"190","version":"1.0","categories":["linux"],"width":"100%","description":"shuf\u30b3\u30de\u30f3\u30c9\u3068\u3044\u3046\u306e\u304c\u3042\u308b\u306e\u3092\u6700\u8fd1\u77e5\u3063\u305f\uff0e\u540d\u524d\u306e\u901a\u308a\uff0c\u884c\u3092\u30b7\u30e3\u30c3\u30d5\u30eb\u3057\u3066\u51fa\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\uff0e $ shuf 1 2 3 4 5 ^D 3 2 4 5 1 \u306f\u3044\uff0e \u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u304b\u3089\u30e9\u30f3\u30c0\u30e0\u306a3\u4ef6\u3092\u53d6\u308a\u51fa\u3059 shuf hoge.txt | head -n3 \u4fbf\u5229\uff0e\u3068\u3044\u3046\u304bhead\u4f7f\u308f\u306a\u3044\u3053\u3068\u3082\u3067\u304d\u3066\uff0c\u666e\u901a\u306f\u3053\u3061\u3089\u3067\u3088\u3055\u305d\u3046: shuf -n3 hoge.txt POSIX\u597d\u304d\u3067\u3059\u304b \u3061\u306a\u307f\u306bshuf\u306fPOSIX\u6a19\u6e96\u306b\u5165\u3063\u3066\u3044\u306a\u304f\u3066\uff0ccoreutils\u306b\u5165\u3063\u3066\u3044\u308b\uff0ecoreutils\u306f\u3060\u3044\u305f\u3044\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067\uff0c\u305d\u3093\u306a\u306b\u56f0\u308b\u3053\u3068\u306f\u306a\u3055\u305d\u3046\uff0e POSIX\u304c\u597d\u304d\u306a\u4eba\u306fsort -\u2026","blog_title":"Lambda\u30ab\u30af\u30c6\u30eb","published":"2018-03-29 16:26:49","provider_name":"Hatena Blog","image_url":null,"author_url":"https://blog.hatena.ne.jp/Windymelt/","url":"https://blog.3qe.us/entry/2018/03/29/162649","author_name":"Windymelt","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2018%2F03%2F29%2F162649\" title=\"shuf\u30b3\u30de\u30f3\u30c9\u4fbf\u5229 - Lambda\u30ab\u30af\u30c6\u30eb\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://blog.3qe.us/","provider_url":"https://hatena.blog"}