{"id":180,"date":"2022-11-01T22:45:39","date_gmt":"2022-11-02T02:45:39","guid":{"rendered":"https:\/\/ibis.uplinklounge.com\/?p=180"},"modified":"2022-11-01T22:45:41","modified_gmt":"2022-11-02T02:45:41","slug":"grep-sed-awk-3-magic-words","status":"publish","type":"post","link":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/","title":{"rendered":"Grep, sed awk &#8211; 3 magic words"},"content":{"rendered":"\n<p>Today a coworker oversaw me at a terminal and commented that sometimes he feels like he&#8217;s Bilbo and I&#8217;m Gandalf. I&#8217;ll take the compliment! It&#8217;s not the first time I&#8217;ve heard something like that, and I think it&#8217;s because of my familiarity with basic system tools younger developers aren&#8217;t familiar with. I intend for this to be a crash course on pragmatic uses of three such tools: grep, sed, and awk.<\/p>\n\n\n\n<p>Grep, sed, and awk are all command line tools for processing text in different ways. Broadly speaking, grep searches text for patterns, sed is kind of like &#8220;find and replace&#8221; on meth, and awk is grep all grown up, back from the war with scars that tell stories. In this article we&#8217;re just going to cover the most basic, pragmatic use of these tools without taking a deep dive. My goal is exposing these wonderful, cursed tools to seekers on the path to *nix nirvana.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a grep and what&#8217;s it do?<\/h2>\n\n\n\n<p>grep simply searches through a bunch of text for a particular word or pattern. A common use of it might be something like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -lha | grep php<\/code><\/pre>\n\n\n\n<p>In this example, we&#8217;re piping the output of ls -lha (which lists files in the directory) to grep, and telling grep to search for lines that contain &#8220;php&#8221;. In other words, this would just show all files containing &#8220;php&#8221; somewhere in the file name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> grep \"Failed password\" \/var\/log\/auth.log | grep \"Oct 26\"<\/code><\/pre>\n\n\n\n<p>The above example would search \/var\/log\/auth.log for any lines containing the string &#8220;Failed password&#8221;, and output them. Except, we pipe the output to grep again with &#8220;Oct 26&#8221;, so we&#8217;ll just get a list of lines that contain both &#8220;Failed password&#8221; <em>and <\/em> &#8220;Oct 26&#8221;.<\/p>\n\n\n\n<p>There&#8217;s a lot more we can cover about grep, but like I said, this is only meant to expose seekers to these tools. We&#8217;re not going to cover everything else grep can do just yet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sed what now?<\/h2>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"jetpack-video-wrapper\"><div class=\"responsive-container\"><iframe loading=\"lazy\" title=\"Puscifer - &quot;Momma Sed&quot; (Official Music Video)\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/dR3ccmWmLhk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div><\/div>\n<\/div><\/figure>\n\n\n\n<p>Sed can be thought of as industrial grade &#8220;search and replace&#8221;. However, using it effectively starts to require understanding what a &#8220;regex&#8221; or &#8220;regular expression&#8221; is, which is akin to learning whatever Swahili&#8217;s version of pig-latin is called. For now, we&#8217;ll stick to the shallow end of the pool.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jason@thor > echo \"Sed went to school and gave the teacher an apple\" | sed -e \"s\/apple\/ass kicking\/g\"\nSed went to school and gave the teacher an ass kicking<\/code><\/pre>\n\n\n\n<p>The basic use of sed works like the above. You pass in some text, and then apply a replacement. Sed outputs the text with the replacements. You can use it on files directly as well, like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -e \"s\/red\/blue\/g\" .\/somefile.txt > somefile_fixed_colors.txt<\/code><\/pre>\n\n\n\n<p>The last example would open somefile.txt, replace all instances of &#8220;red&#8221; with &#8220;blue&#8221;, and then put the modified text into a file called &#8220;somefile_fixed_colors.txt&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jason@thor > echo \"Sed had 1 special idea, 45 apples, 25 chickens, and 10 bottles of booze\" | sed -e \"s\/&#91;0-9]&#91;0-9] \/way too many \/g\" -e \"s\/apples\/assholes\/g\" -e \"s\/&#91;A-Z]\/Y\/g\"\nYed had 1 special idea, way too many assholes, way too many chickens, and way too many bottles of booze<\/code><\/pre>\n\n\n\n<p>Dipping our toes into the warm waters of hell with this useless example, we can start to see the power of sed. In this example, we&#8217;re telling sed to do the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Replace any string containing two numbers in a row followed by a space with &#8220;way too many &#8220;.<\/li><li>Replace apples with assholes.<\/li><li>Replace any capital letter between A and Z with a Y.<\/li><\/ul>\n\n\n\n<p>For a more useful example, but maybe even harder to understand:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> sed -e \"s\/&#91;\\t| +]$\/\/g\" .\/somefile.source > somefile.clean.source<\/code><\/pre>\n\n\n\n<p>This example tells sed to remove trailing spaces or tabs at the end of lines in &#8220;somefile.source&#8221; and then store the results in &#8220;somefile.clean.source&#8221;. Hopefully, you can now understand why I call these cursed tools. The syntax to use them has been known to summon Cthulhu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Awk requires alcohol.<\/h2>\n\n\n\n<p>No joke, I knew a professor at NKU who poured himself a tall rye, lamenting &#8220;I can only talk awk when I&#8217;m drunk&#8221;. Personally, I think he was driving at the fact our profession requires a certain level of &#8220;hold my beer&#8221;. Awk is actually <a href=\"https:\/\/en.wikipedia.org\/wiki\/AWK\">it&#8217;s own language<\/a>. If you enjoy eating raw ghost peppers, this might caress the iceberg: <a href=\"https:\/\/github.com\/iadnah\/gawk-stealth\/blob\/master\/rgawkcmd-0.2.gawk\">https:\/\/github.com\/iadnah\/gawk-stealth\/blob\/master\/rgawkcmd-0.2.gawk<\/a>. If you want to go deeper, look at the source code for &#8220;Durandal&#8217;s Backdoor&#8221;.<\/p>\n\n\n\n<p>One a more practical level, we can think of awk like a more intelligent grep that has some control over output, or maybe even as an output formatting tool.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ps aux | grep nano | awk '{print $2}'<\/pre>\n\n\n\n<p>The above example would list all running processes with some added info, pass that to grep to select only lines containing the string &#8220;nano&#8221;, and then tell awk to only output the 2nd column of those lines.<\/p>\n\n\n\n<p>This article will most likely be updated in the future, but I&#8217;m publishing it now because it at least contains some value (I think).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today a coworker oversaw me at a terminal and commented that sometimes he feels like he&#8217;s Bilbo and I&#8217;m Gandalf. I&#8217;ll take the compliment! It&#8217;s not the first time I&#8217;ve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-uncategorized","post-design-default"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Grep, sed awk - 3 magic words - The Weeping Ibis<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Grep, sed awk - 3 magic words - The Weeping Ibis\" \/>\n<meta property=\"og:description\" content=\"Today a coworker oversaw me at a terminal and commented that sometimes he feels like he&#8217;s Bilbo and I&#8217;m Gandalf. I&#8217;ll take the compliment! It&#8217;s not the first time I&#8217;ve [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\" \/>\n<meta property=\"og:site_name\" content=\"The Weeping Ibis\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/theweepingibis\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-02T02:45:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-02T02:45:41+00:00\" \/>\n<meta name=\"author\" content=\"iadnah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"iadnah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\"},\"author\":{\"name\":\"iadnah\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/#\/schema\/person\/9f670591a7f848879d7787d32db9f197\"},\"headline\":\"Grep, sed awk &#8211; 3 magic words\",\"datePublished\":\"2022-11-02T02:45:39+00:00\",\"dateModified\":\"2022-11-02T02:45:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\"},\"wordCount\":743,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\",\"url\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\",\"name\":\"Grep, sed awk - 3 magic words - The Weeping Ibis\",\"isPartOf\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/#website\"},\"datePublished\":\"2022-11-02T02:45:39+00:00\",\"dateModified\":\"2022-11-02T02:45:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ibis.uplinklounge.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Grep, sed awk &#8211; 3 magic words\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/#website\",\"url\":\"https:\/\/ibis.uplinklounge.com\/\",\"name\":\"The Weeping Ibis\",\"description\":\"Chaos magick, alchemy, cooking, and tech\",\"publisher\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ibis.uplinklounge.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/#organization\",\"name\":\"The Weeping Ibis\",\"url\":\"https:\/\/ibis.uplinklounge.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/ibis.uplinklounge.com\/wp-content\/uploads\/2020\/06\/avatar.jpg?fit=128%2C128&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ibis.uplinklounge.com\/wp-content\/uploads\/2020\/06\/avatar.jpg?fit=128%2C128&ssl=1\",\"width\":128,\"height\":128,\"caption\":\"The Weeping Ibis\"},\"image\":{\"@id\":\"https:\/\/ibis.uplinklounge.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/theweepingibis\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/#\/schema\/person\/9f670591a7f848879d7787d32db9f197\",\"name\":\"iadnah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ibis.uplinklounge.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f251290439322d0b1d07de6736aa29e1dedb00ad4591c8248b5c29e573380b67?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f251290439322d0b1d07de6736aa29e1dedb00ad4591c8248b5c29e573380b67?s=96&d=mm&r=pg\",\"caption\":\"iadnah\"},\"sameAs\":[\"https:\/\/ibis.uplinklounge.com\"],\"url\":\"https:\/\/ibis.uplinklounge.com\/index.php\/author\/iadnah\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Grep, sed awk - 3 magic words - The Weeping Ibis","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:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/","og_locale":"en_US","og_type":"article","og_title":"Grep, sed awk - 3 magic words - The Weeping Ibis","og_description":"Today a coworker oversaw me at a terminal and commented that sometimes he feels like he&#8217;s Bilbo and I&#8217;m Gandalf. I&#8217;ll take the compliment! It&#8217;s not the first time I&#8217;ve [&hellip;]","og_url":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/","og_site_name":"The Weeping Ibis","article_publisher":"https:\/\/www.facebook.com\/theweepingibis\/","article_published_time":"2022-11-02T02:45:39+00:00","article_modified_time":"2022-11-02T02:45:41+00:00","author":"iadnah","twitter_card":"summary_large_image","twitter_misc":{"Written by":"iadnah","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#article","isPartOf":{"@id":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/"},"author":{"name":"iadnah","@id":"https:\/\/ibis.uplinklounge.com\/#\/schema\/person\/9f670591a7f848879d7787d32db9f197"},"headline":"Grep, sed awk &#8211; 3 magic words","datePublished":"2022-11-02T02:45:39+00:00","dateModified":"2022-11-02T02:45:41+00:00","mainEntityOfPage":{"@id":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/"},"wordCount":743,"commentCount":0,"publisher":{"@id":"https:\/\/ibis.uplinklounge.com\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/","url":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/","name":"Grep, sed awk - 3 magic words - The Weeping Ibis","isPartOf":{"@id":"https:\/\/ibis.uplinklounge.com\/#website"},"datePublished":"2022-11-02T02:45:39+00:00","dateModified":"2022-11-02T02:45:41+00:00","breadcrumb":{"@id":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ibis.uplinklounge.com\/index.php\/2022\/11\/01\/grep-sed-awk-3-magic-words\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ibis.uplinklounge.com\/"},{"@type":"ListItem","position":2,"name":"Grep, sed awk &#8211; 3 magic words"}]},{"@type":"WebSite","@id":"https:\/\/ibis.uplinklounge.com\/#website","url":"https:\/\/ibis.uplinklounge.com\/","name":"The Weeping Ibis","description":"Chaos magick, alchemy, cooking, and tech","publisher":{"@id":"https:\/\/ibis.uplinklounge.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibis.uplinklounge.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibis.uplinklounge.com\/#organization","name":"The Weeping Ibis","url":"https:\/\/ibis.uplinklounge.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibis.uplinklounge.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/ibis.uplinklounge.com\/wp-content\/uploads\/2020\/06\/avatar.jpg?fit=128%2C128&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ibis.uplinklounge.com\/wp-content\/uploads\/2020\/06\/avatar.jpg?fit=128%2C128&ssl=1","width":128,"height":128,"caption":"The Weeping Ibis"},"image":{"@id":"https:\/\/ibis.uplinklounge.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/theweepingibis\/"]},{"@type":"Person","@id":"https:\/\/ibis.uplinklounge.com\/#\/schema\/person\/9f670591a7f848879d7787d32db9f197","name":"iadnah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibis.uplinklounge.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f251290439322d0b1d07de6736aa29e1dedb00ad4591c8248b5c29e573380b67?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f251290439322d0b1d07de6736aa29e1dedb00ad4591c8248b5c29e573380b67?s=96&d=mm&r=pg","caption":"iadnah"},"sameAs":["https:\/\/ibis.uplinklounge.com"],"url":"https:\/\/ibis.uplinklounge.com\/index.php\/author\/iadnah\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":10,"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/posts\/180\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibis.uplinklounge.com\/index.php\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}