{"id":1884,"date":"2020-11-20T12:59:30","date_gmt":"2020-11-20T12:59:30","guid":{"rendered":"https:\/\/linuxdigest.com\/?p=1884"},"modified":"2020-11-20T12:59:30","modified_gmt":"2020-11-20T12:59:30","slug":"sed-cheat-sheet","status":"publish","type":"post","link":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/","title":{"rendered":"Sed cheat sheet"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#Sed_basics\" title=\"Sed basics\">Sed basics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#Replacing_text\" title=\"Replacing text\">Replacing text<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#Search_for_text\" title=\"Search for text\">Search for text<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#Appending_lines\" title=\"Appending lines\">Appending lines<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#Prepending_lines\" title=\"Prepending lines\">Prepending lines<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#Deleting_lines\" title=\"Deleting lines\">Deleting lines<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Sed_basics\"><\/span>Sed basics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Print file while replacing replacing a word.<\/td><\/tr><tr><td>sed &#8216;s\/old\/new\/g&#8217; file.txt<\/td><\/tr><tr><td>Print file with changes to a new file.<\/td><\/tr><tr><td>sed &#8216;s\/old\/new\/g&#8217; file.txt > newfile.txt<\/td><\/tr><tr><td>Change file in place.<\/td><\/tr><tr><td>sed &#8216;s\/old\/new\/g&#8217; -i file.txt<\/td><\/tr><tr><td>Change file in place. But make a backup of the original with .backup appended to the file name.<\/td><\/tr><tr><td>sed &#8216;s\/old\/new\/g&#8217; -i.backup file.txt<\/td><\/tr><tr><td>Change output of another command by piping it to sed.<\/td><\/tr><tr><td>echo &#8216;old text&#8217; | sed &#8216;s\/old\/new\/g&#8217;<\/td><\/tr><tr><td>Run multiple sed commands from a script.<\/td><\/tr><tr><td>echo &#8216;s\/old\/new\/g&#8217; >> script.sed<br>echo &#8216;\/Hello\/d&#8217; >> script.sed<br>sed -f script.sed file.txt<\/td><\/tr><tr><td>Run multiple commands from the command line.<\/td><\/tr><tr><td>sed -e &#8216;s\/old\/new\/g&#8217; -e &#8216;\/hello\/d&#8217; file.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Replacing_text\"><\/span>Replacing text<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Replace all occurances of a string.<\/td><\/tr><tr><td>sed &#8216;s\/old\/new\/g&#8217; file.txt<\/td><\/tr><tr><td>Replace only the nth occurence of a string in a file.<\/td><\/tr><tr><td>sed &#8216;s\/old\/new\/ 2&#8217; file.txt<\/td><\/tr><tr><td>Replace replace a string only on the 5th line<\/td><\/tr><tr><td>sed &#8216;5 s\/old\/new\/&#8217; file.txt<\/td><\/tr><tr><td>Replace &#8220;world&#8221; with &#8220;universe&#8221; but only if the line begins with &#8220;hello&#8221;<\/td><\/tr><tr><td>sed &#8216;\/hello\/s\/world\/universe\/&#8217; file.txt<\/td><\/tr><tr><td>Remove &#8220;\\&#8221; from the end of each line.<\/td><\/tr><tr><td>sed &#8216;s\/\\\\$\/\/&#8217; file.txt<\/td><\/tr><tr><td>Remove all whitespace from beginning of each line.<\/td><\/tr><tr><td>sed &#8216;s\/^\\s*\/\/&#8217; file.txt<\/td><\/tr><tr><td>Remove comments. Even those that are at the end of a line.<\/td><\/tr><tr><td>sed &#8216;s\/#.*$\/\/&#8217; file.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Search_for_text\"><\/span>Search for text<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Search for a string and only print the lines that were matched.<\/td><\/tr><tr><td>sed -n &#8216;\/hello\/p&#8217; file.txt<\/td><\/tr><tr><td>Case insensitive search.<\/td><\/tr><tr><td>sed -n &#8216;\/hello\/Ip&#8217; file.txt<\/td><\/tr><tr><td>Search for a string but only output lines that do not match.<\/td><\/tr><tr><td>sed -n &#8216;\/hello\/!p&#8217; file.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Appending_lines\"><\/span>Appending lines<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Append line after line 2<\/td><\/tr><tr><td>sed &#8216;2a Text after line 2&#8217; file.txt<\/td><\/tr><tr><td>Append line at the end of the file<\/td><\/tr><tr><td>sed &#8216;$a this is the end of the file&#8217; file.txt<\/td><\/tr><tr><td>Append line after every 3rd line starting from line 3<\/td><\/tr><tr><td>sed &#8216;3~3a Some text&#8217; file.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prepending_lines\"><\/span>Prepending lines<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Insert text before line 5.<\/td><\/tr><tr><td>sed &#8216;5i line number five&#8217; file.txt<\/td><\/tr><tr><td>Insert text before each line that matches pattern. Insert &#8220;Example:&#8221; before each line that contains &#8220;hello world&#8221;<\/td><\/tr><tr><td>sed &#8216;\/hello world\/i Example:&#8217; file.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deleting_lines\"><\/span>Deleting lines<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Delete line 5-7 in file.<\/td><\/tr><tr><td>sed &#8216;5,7d&#8217; file.txt<\/td><\/tr><tr><td>Delete every 2nd line starting with line 3.<\/td><\/tr><tr><td>sed &#8216;3~2d&#8217; file.txt<\/td><\/tr><tr><td>Delete the last line in file<\/td><\/tr><tr><td>sed &#8216;$d&#8217; file.txt<\/td><\/tr><tr><td>Delete lines starting with &#8220;Hello&#8221;.<\/td><\/tr><tr><td>sed &#8216;\/^Hello\/d&#8217; file.txt<\/td><\/tr><tr><td>Delete all empty lines.<\/td><\/tr><tr><td>sed &#8216;\/^$\/d&#8217; file.txt<\/td><\/tr><tr><td>Delete lines starting with &#8220;#&#8221;<\/td><\/tr><tr><td>sed &#8216;\/^#\/d&#8217; file.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Sed basics Print file while replacing replacing a word. sed &#8216;s\/old\/new\/g&#8217; file.txt Print file with changes&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1886,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sed cheat sheet - Linux Digest<\/title>\n<meta name=\"description\" content=\"Below are some of the most common sed commands. Bookmark this sed cheat sheet so you have it whenever you need to use sed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sed cheat sheet - Linux Digest\" \/>\n<meta property=\"og:description\" content=\"Below are some of the most common sed commands. Bookmark this sed cheat sheet so you have it whenever you need to use sed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Digest\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-20T12:59:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxdigest.com\/wp-content\/uploads\/2020\/11\/magnifying_glass-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1920\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"The Linux Digest Guy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"The Linux Digest Guy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\"},\"author\":{\"name\":\"The Linux Digest Guy\",\"@id\":\"https:\/\/linuxdigest.com\/#\/schema\/person\/29c97230aa94affab929a88c6a10adb2\"},\"headline\":\"Sed cheat sheet\",\"datePublished\":\"2020-11-20T12:59:30+00:00\",\"dateModified\":\"2020-11-20T12:59:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\"},\"wordCount\":456,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/linuxdigest.com\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\",\"url\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\",\"name\":\"Sed cheat sheet - Linux Digest\",\"isPartOf\":{\"@id\":\"https:\/\/linuxdigest.com\/#website\"},\"datePublished\":\"2020-11-20T12:59:30+00:00\",\"dateModified\":\"2020-11-20T12:59:30+00:00\",\"description\":\"Below are some of the most common sed commands. Bookmark this sed cheat sheet so you have it whenever you need to use sed.\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxdigest.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sed cheat sheet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxdigest.com\/#website\",\"url\":\"https:\/\/linuxdigest.com\/\",\"name\":\"Linux Digest\",\"description\":\"Linux tutorials for everyone\",\"publisher\":{\"@id\":\"https:\/\/linuxdigest.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxdigest.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/linuxdigest.com\/#organization\",\"name\":\"Linux Digest\",\"url\":\"https:\/\/linuxdigest.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxdigest.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/linuxdigest.com\/wp-content\/uploads\/2019\/11\/logo1.png\",\"contentUrl\":\"https:\/\/linuxdigest.com\/wp-content\/uploads\/2019\/11\/logo1.png\",\"width\":1102,\"height\":170,\"caption\":\"Linux Digest\"},\"image\":{\"@id\":\"https:\/\/linuxdigest.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxdigest.com\/#\/schema\/person\/29c97230aa94affab929a88c6a10adb2\",\"name\":\"The Linux Digest Guy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxdigest.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ac6bcf745dec6961360ccf2d2711f26c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ac6bcf745dec6961360ccf2d2711f26c?s=96&d=mm&r=g\",\"caption\":\"The Linux Digest Guy\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sed cheat sheet - Linux Digest","description":"Below are some of the most common sed commands. Bookmark this sed cheat sheet so you have it whenever you need to use sed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/","og_locale":"en_US","og_type":"article","og_title":"Sed cheat sheet - Linux Digest","og_description":"Below are some of the most common sed commands. Bookmark this sed cheat sheet so you have it whenever you need to use sed.","og_url":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/","og_site_name":"Linux Digest","article_published_time":"2020-11-20T12:59:30+00:00","og_image":[{"width":2560,"height":1920,"url":"https:\/\/linuxdigest.com\/wp-content\/uploads\/2020\/11\/magnifying_glass-scaled.jpg","type":"image\/jpeg"}],"author":"The Linux Digest Guy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"The Linux Digest Guy","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#article","isPartOf":{"@id":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/"},"author":{"name":"The Linux Digest Guy","@id":"https:\/\/linuxdigest.com\/#\/schema\/person\/29c97230aa94affab929a88c6a10adb2"},"headline":"Sed cheat sheet","datePublished":"2020-11-20T12:59:30+00:00","dateModified":"2020-11-20T12:59:30+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/"},"wordCount":456,"commentCount":0,"publisher":{"@id":"https:\/\/linuxdigest.com\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/","url":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/","name":"Sed cheat sheet - Linux Digest","isPartOf":{"@id":"https:\/\/linuxdigest.com\/#website"},"datePublished":"2020-11-20T12:59:30+00:00","dateModified":"2020-11-20T12:59:30+00:00","description":"Below are some of the most common sed commands. Bookmark this sed cheat sheet so you have it whenever you need to use sed.","breadcrumb":{"@id":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/linuxdigest.com\/howto\/sed-cheat-sheet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxdigest.com\/"},{"@type":"ListItem","position":2,"name":"Sed cheat sheet"}]},{"@type":"WebSite","@id":"https:\/\/linuxdigest.com\/#website","url":"https:\/\/linuxdigest.com\/","name":"Linux Digest","description":"Linux tutorials for everyone","publisher":{"@id":"https:\/\/linuxdigest.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxdigest.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxdigest.com\/#organization","name":"Linux Digest","url":"https:\/\/linuxdigest.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxdigest.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxdigest.com\/wp-content\/uploads\/2019\/11\/logo1.png","contentUrl":"https:\/\/linuxdigest.com\/wp-content\/uploads\/2019\/11\/logo1.png","width":1102,"height":170,"caption":"Linux Digest"},"image":{"@id":"https:\/\/linuxdigest.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxdigest.com\/#\/schema\/person\/29c97230aa94affab929a88c6a10adb2","name":"The Linux Digest Guy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxdigest.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ac6bcf745dec6961360ccf2d2711f26c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ac6bcf745dec6961360ccf2d2711f26c?s=96&d=mm&r=g","caption":"The Linux Digest Guy"}}]}},"_links":{"self":[{"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/posts\/1884"}],"collection":[{"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/comments?post=1884"}],"version-history":[{"count":3,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/posts\/1884\/revisions"}],"predecessor-version":[{"id":2129,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/posts\/1884\/revisions\/2129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/media\/1886"}],"wp:attachment":[{"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/media?parent=1884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/categories?post=1884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxdigest.com\/wp-json\/wp\/v2\/tags?post=1884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}