{"id":18412,"date":"2023-11-30T09:15:03","date_gmt":"2023-11-30T09:15:03","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=18412"},"modified":"2023-11-30T09:15:03","modified_gmt":"2023-11-30T09:15:03","slug":"sort-command-linuxunix-examples","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/","title":{"rendered":"sort command linuxunix examples"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg\" alt=\"\" \/><br \/>\nIn the vast realm of Linux command-line utilities, the sort command stands out as a versatile and indispensable tool for sorting lines of text. Whether you&#8217;re working with data files, logs, or any textual content, the sort command allows you to arrange information alphabetically, numerically, or in various custom ways. It&#8217;s a fundamental tool for organizing and analyzing text data efficiently.<\/p>\n<p>The basic purpose of sort is to take input from one or more files or standard input, reorder the lines, and then print the result to standard output. While its primary function is sorting alphabetically, the command comes equipped with a plethora of options, enabling users to perform numerical sorts, reverse orders, remove duplicates, and more.<\/p>\n<p>In this article, we will delve into the various aspects of the sort command, exploring its syntax, common use cases, and a series of examples that highlight its capabilities. Whether you&#8217;re a seasoned Linux user or just stepping into the command-line world, understanding how to harness the power of sort can significantly enhance your ability to manipulate and analyze text data effectively.<\/p>\n<h2>What is Sort Command in Linux?<\/h2>\n<p>The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input. It&#8217;s a versatile tool that can be used for a variety of purposes, from arranging data in ascending or descending order to removing duplicate lines. In this article, we will explore the capabilities of the sort command through a series of examples to help you become proficient in its usage.<\/p>\n<h3>Basic Syntax of sort command in Linux:<\/h3>\n<p>The basic syntax of the sort command is as follows:<\/p>\n<pre><code>sort [options] [file(s)]<\/code><\/pre>\n<p>Here, [options] are optional flags that modify the behavior of the command, and [file(s)] represent the file or files you want to sort. If no file is provided, sort reads from standard input.<\/p>\n<p><strong>Sorting Files Alphabetically:<\/strong><br \/>\nThe most common usage of the sort command is to sort lines alphabetically. Here&#8217;s a simple example:<\/p>\n<pre><code>$ cat example.txt\nbanana\napple\ngrape\norange\n\n$ sort example.txt\napple\nbanana\ngrape\norange<\/code><\/pre>\n<p>This sorts the lines in example.txt in ascending alphabetical order.<\/p>\n<p><strong>Sorting in Reverse Order:<\/strong><br \/>\nTo sort lines in reverse order (descending), use the -r option:<\/p>\n<pre><code>$ sort -r example.txt\norange\ngrape\nbanana\napple<\/code><\/pre>\n<p><strong>Numerical Sorting:<\/strong><br \/>\nBy default, sort performs a lexicographic sort, treating numbers as strings. To sort numerically, use the -n option:<\/p>\n<pre><code>$ cat numbers.txt\n10\n2\n30\n5\n\n$ sort -n numbers.txt\n2\n5\n10\n30<\/code><\/pre>\n<p><strong>Sorting Based on a Specific Field:<\/strong><br \/>\nFor files with columns, you can sort based on a specific field using the -k option. For example, sorting a file with tab-separated values based on the second column:<\/p>\n<pre><code>$ cat data.txt\nJohn    25\nAlice   30\nBob     22\n\n$ sort -t$'\\t' -k2,2 data.txt\nBob     22\nJohn    25\nAlice   30<\/code><\/pre>\n<p><strong>Sorting with Case-Insensitive Option:<\/strong><br \/>\nTo perform a case-insensitive sort, use the -f option:<\/p>\n<pre><code>$ cat mixedCase.txt\nApple\nbanana\norange\nBanana\n\n$ sort -f mixedCase.txt\nApple\nbanana\nBanana\norange<\/code><\/pre>\n<p><strong>Conclusion<\/strong><br \/>\nThe sort command in Linux\/Unix is a versatile tool for organizing and analyzing text data. Whether you need to alphabetically arrange lines, perform numerical sorting, remove duplicates, or sort based on specific fields, sort provides a wide range of options. By mastering the examples provided in this guide, you can efficiently manipulate and order textual data, making the sort command an essential part of your Linux command-line toolkit.<\/p>\n<h2>FAQs related to Sort Command in Linux<\/h2>\n<p>Here are some of the FAQs related to Sort Command in Linux:<\/p>\n<p><strong>Q1: What is the primary purpose of the &#8216;sort&#8217; command?<\/strong><br \/>\nThe primary purpose of the &#8216;sort&#8217; command in Linux is to arrange lines of text in a specified order. By default, it sorts alphabetically, but it offers various options for numerical sorting, reverse ordering, and more.<\/p>\n<p><strong>Q2: How do I use the &#8216;sort&#8217; command to sort lines in reverse order?<\/strong><br \/>\nTo sort lines in reverse order (descending), you can use the -r option. For example:<\/p>\n<pre><code>$ sort -r filename<\/code><\/pre>\n<p><strong>Q3: Can the &#8216;sort&#8217; command handle numerical sorting?<\/strong><br \/>\nYes, the &#8216;sort&#8217; command can perform numerical sorting using the -n option. This is useful when dealing with files containing numerical data.<\/p>\n<p><strong>Q4: How can I remove duplicate lines from a file using &#8216;sort&#8217;?<\/strong><br \/>\nThe &#8216;sort&#8217; command can be used to remove duplicate lines from a file by using the -u option. For example:<\/p>\n<pre><code>$ sort -u filename<\/code><\/pre>\n<p><strong>Q5: Is it possible to sort based on a specific field in a file with columns?<\/strong><br \/>\nYes, you can sort based on a specific field using the -k option. This is particularly useful when dealing with files containing tabular data.<\/p>\n<p><strong>Q6: Can the &#8216;sort&#8217; command handle case-insensitive sorting?<\/strong><br \/>\nA: Yes, the &#8216;sort&#8217; command can perform case-insensitive sorting using the -f option. This allows you to sort lines without considering the case of the letters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the vast realm of Linux command-line utilities, the sort command stands out as a versatile and indispensable tool for sorting lines of text. Whether you&#8217;re working with data files, logs, or any textual content, the sort command allows you to arrange information alphabetically, numerically, or in various custom ways. It&#8217;s a fundamental tool for [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"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":[230],"tags":[],"class_list":["post-18412","post","type-post","status-publish","format-standard","hentry","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>sort command linuxunix examples<\/title>\n<meta name=\"description\" content=\"The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"sort command linuxunix examples\" \/>\n<meta property=\"og:description\" content=\"The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-30T09:15:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\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:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"sort command linuxunix examples\",\"datePublished\":\"2023-11-30T09:15:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\"},\"wordCount\":730,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\",\"name\":\"sort command linuxunix examples\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg\",\"datePublished\":\"2023-11-30T09:15:03+00:00\",\"description\":\"The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/linux\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"sort command linuxunix examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"sort command linuxunix examples","description":"The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input.","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:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/","og_locale":"en_US","og_type":"article","og_title":"sort command linuxunix examples","og_description":"The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input.","og_url":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-11-30T09:15:03+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"sort command linuxunix examples","datePublished":"2023-11-30T09:15:03+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/"},"wordCount":730,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg","articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/","url":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/","name":"sort command linuxunix examples","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg","datePublished":"2023-11-30T09:15:03+00:00","description":"The sort command in Linux\/Unix is a powerful utility for sorting lines of text in a file or standard input.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1701335690629-sort%20command%20linuxunix%20examples%20.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/sort-command-linuxunix-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/prepbytes.com\/blog\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"sort command linuxunix examples"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/18412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=18412"}],"version-history":[{"count":2,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/18412\/revisions"}],"predecessor-version":[{"id":18462,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/18412\/revisions\/18462"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=18412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=18412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=18412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}