{"blog_title":"nano_exit","author_url":"https://blog.hatena.ne.jp/koideforest/","provider_name":"Hatena Blog","title":"sed\u3067\u3001\u4e0d\u8981\u306a\u884c\u3092\u6d88\u53bb\u3057\u306a\u304c\u3089\u3001\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u7f6e\u63db\u3057\u3001\u7d50\u679c\u3092\u4e0a\u66f8\u304d\u3059\u308b","author_name":"koideforest","version":"1.0","blog_url":"https://koideforest.hatenadiary.com/","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"height":"190","provider_url":"https://hatena.blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/89449353/1514224948935857","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoideforest.hatenadiary.com%2Fentry%2F2024%2F01%2F17%2F204127\" title=\"sed\u3067\u3001\u4e0d\u8981\u306a\u884c\u3092\u6d88\u53bb\u3057\u306a\u304c\u3089\u3001\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u7f6e\u63db\u3057\u3001\u7d50\u679c\u3092\u4e0a\u66f8\u304d\u3059\u308b - nano_exit\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u53c2\u8003\u30b5\u30a4\u30c8 sed \u3067\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u306e\u884c\u3092\u7f6e\u63db\u3059\u308b - \u307e\u304f\u307e\u304fsed/awk\u30ce\u30fc\u30c8 sed | \u30c6\u30ad\u30b9\u30c8\u306e\u7f6e\u63db\u51e6\u7406\u3092\u5f97\u610f\u3068\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e sed\u3067\u3053\u3046\u3044\u3046\u6642\u306f\u3069\u3046\u66f8\u304f? #Linux - Qiita text.txt\u5185\u306e1~10\u884c\u76ee\u3092\u7121\u8996\u3057\u305f\u3044\u3002 sed -e '1,10d' text.txt \u7121\u8996\u3057\u305f\u5f8c\u306e\u6b8b\u3055\u308c\u305f\u884c\u3092\u3001\u982d\u304b\u30891\u884c\u76ee\u3068\u6570\u3048\u76f4\u3057\u3066\u3001100\u884c\u76ee\u304b\u30891000\u884c\u76ee\u306e\u9593\u306b\u3042\u308b\u5168\u3066\u306ehoge\u3092HOGE\u306b\u7f6e\u63db\u3057\u305f\u3044\u3002 sed -e '1,10d' -e '100,1000 s/hoge/HOGE/g' text.txt \u4e0a\u8a18\u306e\u5185\u5bb9\u3092\u3001\u540c\u3058text.txt\u306b\u53cd\u6620\u3055\u305b\u305f\u3044\u3002 sed -i -\u2026","width":"100%","published":"2024-01-17 20:41:27","url":"https://koideforest.hatenadiary.com/entry/2024/01/17/204127"}