{"id":1596,"date":"2020-11-14T10:43:06","date_gmt":"2020-11-14T10:43:06","guid":{"rendered":"https:\/\/linuxways.net\/?p=1596"},"modified":"2020-11-18T17:39:08","modified_gmt":"2020-11-18T17:39:08","slug":"15-examples-of-using-grep-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/15-examples-of-using-grep-command-in-linux\/","title":{"rendered":"15 examples of using Grep command in Linux"},"content":{"rendered":"<p>Grep, or Global Regular Expression Print, is an extremely useful Linux command for finding matching patterns. It can look through files and directories, and read input from commands as well. It searches with regex, or regular expressions and prints lines from a file that matches the given pattern.<\/p>\n<p><strong>In this post, we\u2019ll be looking at how to use the Grep command in Linux. The commands discussed here have been tested on Ubuntu 20.04. The same Grep commands also work for Debian, Mint, Fedora, and CentOS. <\/strong><\/p>\n<h2>Installing grep command<\/h2>\n<p>Most Linux distributions including Ubuntu 20.04 LTS come with grep installed. In case your system does not have Grep installed, you can install it using the below command in Terminal:<\/p>\n<pre>$ Sudo apt-get install grep<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"37\" class=\"wp-image-1597\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-332.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-332.png 497w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-332-300x22.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/p>\n<h2>Grep command syntax<\/h2>\n<p>The basic syntax of the Grep command is as follows:<\/p>\n<pre>$ grep [options] PATTERN [FILE...]<\/pre>\n<h2>Using Grep Command<\/h2>\n<h3>Finding a word in a file<\/h3>\n<p>With Grep, you can search any word in a specific file. The syntax would be:<\/p>\n<pre>$ grep &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the below command will look for the word \u201cDonuts\u201d in the file \u201cDonuts.txt\u201d.<\/p>\n<pre>$ grep Donuts Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"39\" class=\"wp-image-1598\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-333.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-333.png 470w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-333-300x25.png 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/p>\n<h3>Finding a word in multiple files<\/h3>\n<p>You can also search for a specific word in multiple files.<\/p>\n<pre>$ grep &lt;word&gt; &lt;filename1&gt; &lt; filename2&gt;<\/pre>\n<p>For instance, the below command will look for the word \u201cDonuts\u201d in both \u201cDonuts.txt\u201d and \u201ccakes.txt\u201d.<\/p>\n<pre>$ grep Donuts Donuts.txt cakes.txt<\/pre>\n<h3>Ignoring case<\/h3>\n<p>Grep performs case-sensitive searches by default, this means that it treats \u201cDonut\u201d and \u201cdonuts\u201d differently. If we again run the above command with \u201cdonuts\u201d, you will see no output this time.<\/p>\n<pre>$ grep donuts Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"522\" height=\"41\" class=\"wp-image-1599\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-334.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-334.png 522w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-334-300x24.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<p>To ignore the case, you will need to add \u201c<strong>-i<\/strong>\u201d to your command like this:<\/p>\n<pre>$ grep \u2013i &lt;word&gt; &lt;filename&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"44\" class=\"wp-image-1600\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-335.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-335.png 493w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-335-300x27.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/p>\n<h3>Finding a file by extension in a directory<\/h3>\n<p>You can also find a file in a specific directory by its extension. Use the following syntax to do so:<\/p>\n<pre>$ ls ~\/&lt;directory&gt; | grep .&lt;file type&gt;<\/pre>\n<p>For instance, to find all \u201c.jpeg\u201d files in the \u201cDownloads\u201d folder, the command would be:<\/p>\n<pre>$ ls ~\/Downloads | grep .jpeg<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"40\" class=\"wp-image-1601\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-336.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-336.png 520w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-336-300x23.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-336-501x40.png 501w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<h3>Printing lines that do not match a pattern<\/h3>\n<p>With Grep, you can also print the lines that don\u2019t match your pattern by adding \u201c<strong>-v<\/strong>\u201d to your command. Use the following syntax to do so:<\/p>\n<pre>$ grep -v &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print all the lines except the one which contains the word \u201cDonuts\u201d in it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"487\" height=\"60\" class=\"wp-image-1602\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-337.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-337.png 487w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-337-300x37.png 300w\" sizes=\"auto, (max-width: 487px) 100vw, 487px\" \/><\/p>\n<h3>Printing only the matching word<\/h3>\n<p>By default, grep prints the whole line that contains the pattern. To print just the matching word, add \u201c<strong>-o<\/strong>\u201d to your command.<\/p>\n<pre>$ grep -o &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print only the word \u201cDonuts\u201d instead of printing the entire line from the file \u201cDonuts.txt\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"38\" class=\"wp-image-1603\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-338.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-338.png 493w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-338-300x23.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/p>\n<h3>Printing line number of matching pattern and line<\/h3>\n<p>By default, grep prints the entire line that contains the pattern. To print both the line number and line that contains the matching word, add \u201c<strong>-n<\/strong>\u201d to your command.<\/p>\n<pre>$ grep -n &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print both the line number and the line that contains the word \u201cDonuts\u201d.<\/p>\n<pre>$ grep -n Donuts Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"37\" class=\"wp-image-1604\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-339.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-339.png 495w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-339-300x22.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/p>\n<h3>Printing file names that match a pattern<\/h3>\n<p>To print all the files in your current directory that match your pattern, use the following syntax:<\/p>\n<pre>$ grep -l \u201c&lt;word&gt;\u201d *<\/pre>\n<p>For instance, the following command will print all the files that contain the word \u201cHello\u201d:<\/p>\n<pre>$ grep -l \u201cHello\u201d *<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"91\" class=\"wp-image-1605\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-340.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-340.png 505w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-340-300x54.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-340-501x91.png 501w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/p>\n<h3>Printing the whole matching word<\/h3>\n<p>By default, grep prints all the words that match your pattern, even if they are part of a word. Look at the image below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"521\" height=\"114\" class=\"wp-image-1606\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-341.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-341.png 521w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-341-300x66.png 300w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/p>\n<p>We searched for the string \u201c<strong>do<\/strong>\u201d and can see all the lines that contain \u201c<strong>do<\/strong>\u201d. To match the exact word, add \u201c<strong>-w<\/strong>\u201d to your command.<\/p>\n<pre>$ grep \u2013w &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, to search the exact word \u201c<strong>do<\/strong>\u201d in the Donuts.txt file, the command would be:<\/p>\n<pre>$ grep -w do Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"39\" class=\"wp-image-1607\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-342.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-342.png 547w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-342-300x21.png 300w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/p>\n<p>As you can see, it now only prints the line that contains the exact word \u201c<strong>do<\/strong>\u201d.<\/p>\n<h3>Matching lines that start with a particular word<\/h3>\n<p>To print lines that start with a particular word, add \u201c<strong>^<\/strong>\u201d to your command.<\/p>\n<pre>$ grep ^&lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print all the lines that start with \u201c<strong>Th<\/strong>\u201d.<\/p>\n<pre>$ grep ^Th Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"131\" class=\"wp-image-1608\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-343.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-343.png 565w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-343-300x70.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<h3>Matching lines that end with a pattern<\/h3>\n<p>To print lines that end with a particular pattern, add \u201c<strong>$<\/strong>\u201d to your command.<\/p>\n<pre>$ grep &lt;word&gt;$ &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print all the lines that end with \u201c<strong>t<\/strong>\u201d.<\/p>\n<pre>$ grep t$ Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"515\" height=\"57\" class=\"wp-image-1609\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-344.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-344.png 515w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-344-300x33.png 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/p>\n<h3>Matching lines that contain certain letters<\/h3>\n<p>If you want to look for lines that have one or multiple letters in them, use the following syntax:<\/p>\n<pre>$ grep \u201c[&lt;letters&gt;]\u201d &lt;filename&gt;<\/pre>\n<p>For instance, the following command print all the lines that contain any letter from \u201ca\u201d to \u201cf\u201d.<\/p>\n<pre>$ grep \u201c[a-f]\u201d Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"149\" class=\"wp-image-1610\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-345.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-345.png 564w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-345-300x79.png 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/p>\n<h3>Recursive Search<\/h3>\n<p>To look up all the files in a directory and sub-directory for a particular pattern or word, use:<\/p>\n<pre>$ grep -R &lt;word&gt; &lt;path&gt;<\/pre>\n<p>For instance, the following command will list all the files that contain the word \u201cHello\u201d in the Documents directory. In the below output, you can see the file paths along with the matching words.<\/p>\n<pre>$ grep -R \u201cHello\u201d \/home\/maryam\/Documents<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"134\" class=\"wp-image-1611\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-346.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-346.png 624w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-346-300x64.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/p>\n<h3>Printing specific lines before\/after the matched words<\/h3>\n<p>By default, Grep prints only the line that matched the specific pattern. With <strong>-A<\/strong> option in Grep, you can also include some lines before or after the matched words.<\/p>\n<h4>Printing lines after the match<\/h4>\n<p>To print the lines that contain the matched words including <strong>N<\/strong> number of lines after the matches:<\/p>\n<pre>$ grep -A &lt;N&gt; &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print the line containing the word \u201chell\u201d along with 1 line after it.<\/p>\n<pre>$ grep -A 1 hell Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"88\" class=\"wp-image-1612\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-347.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-347.png 630w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-347-300x42.png 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<h4>Printing lines before the match<\/h4>\n<p>To print the lines that contain the matched words including <strong>N<\/strong> number of lines before the matches:<\/p>\n<pre>$ grep -B &lt;N&gt; &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print the line containing the word \u201chell\u201d along with 1 line before it.<\/p>\n<pre>$ grep -B 1 hell Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"89\" class=\"wp-image-1613\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-348.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-348.png 637w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-348-300x42.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/p>\n<h4>Printing lines before and after the match<\/h4>\n<p>To print the lines that contain the matched words including <strong>N <\/strong>number of lines before and after the matches:<\/p>\n<pre>$ grep -C &lt;N&gt; &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command will print the line containing the word \u201chell\u201d along with 1 line before and after it.<\/p>\n<pre>$ grep -C 1 hell Donuts.txt<\/pre>\n<p><em><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"111\" class=\"wp-image-1614\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-349.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-349.png 642w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-349-300x52.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/em><\/p>\n<h3>Counting the number of matches<\/h3>\n<p>Using the <strong>-c<\/strong> option with grep, you can count the lines that match a specific pattern. Remember, it will only match the number of lines not the number of matched words.<\/p>\n<pre>$ grep -c &lt;word&gt; &lt;filename&gt;<\/pre>\n<p>For instance, the following command prints the count of lines that contains the word \u201cDonuts\u201d.<\/p>\n<pre>$ grep -c Donuts Donuts.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"161\" class=\"wp-image-1615\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-350.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-350.png 589w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-350-300x82.png 300w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/p>\n<p>Note that our file &#8220;Donuts.txt&#8221; contains 4 &#8220;Donuts&#8221;, but -c has only printed the count as 3. It happens because it counts the number of lines instead of the number of matches.<\/p>\n<p>For more information regarding grep, use the below command:<\/p>\n<pre>$ grep --help<\/pre>\n<p>or visit the man page using the below command:<\/p>\n<pre>$ man grep<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"54\" class=\"wp-image-1616\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-351.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-351.png 420w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-351-300x39.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/p>\n<p>This will take you to the Grep manual page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"531\" class=\"wp-image-1617\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-352.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-352.png 726w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-352-300x219.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<p>That is all there is to it! In this post, we have explained the basic syntax and usage of the grep command in Linux. We also went through some command-line options to expand its usefulness. If you know some other uses of the Grep command in Linux that we have missed, we would love to know about them in the comments below.<\/p>\n<p><a href=\"https:\/\/linuxways.net\/de\/ubuntu\/3-ways-for-finding-files-and-directories-in-linux\/\">Explore this related article to find out how you can find files and directories in Linux.<\/a><\/p>\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Grep, or Global Regular Expression Print, is an extremely useful Linux command for finding matching patterns. It can look through files and directories, and read input from commands&hellip;<\/p>","protected":false},"author":1,"featured_media":1618,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,2],"tags":[38,17,77,35,45],"class_list":["post-1596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-ubuntu","tag-centos","tag-debian-10","tag-grep-command","tag-linux","tag-linux-mint"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=1596"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1596\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1618"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=1596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=1596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=1596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}