{"id":17094,"date":"2023-07-05T05:23:17","date_gmt":"2023-07-05T05:23:17","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=17094"},"modified":"2023-07-05T05:23:17","modified_gmt":"2023-07-05T05:23:17","slug":"bash-scripting-if-statement-with-examples","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/","title":{"rendered":"Bash scripting if Statement With Examples"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg\" alt=\"\" \/><\/p>\n<p>Bash, short for &quot;Bourne Again SHell,&quot; is a powerful scripting language used in Unix-based operating systems. One of the fundamental constructs in Bash programming is the if statement. The if statement allows you to control the flow of your script based on specific conditions. In this article, we will delve into the intricacies of Bash if statements, exploring their syntax, various conditionals, and examples to illustrate their usage.<\/p>\n<h2>Basic If statements<\/h2>\n<p>A basic if statement commands that if a particular condition is true, then only execute a given set of actions. If it is not true, then do not execute those actions. If statement is based on the following format:<\/p>\n<p>Syntax of If statement<br \/>\nif condition<br \/>\nthen<\/p>\n<h1>Code block executed when condition is true<\/h1>\n<pre><code>else\n    # Code block executed when condition is false\nfi<\/code><\/pre>\n<h2>Conditions of using if statement<\/h2>\n<p>Bash provides several conditionals that you can use within if statements:<br \/>\n<strong>1. Numeric Comparisons:<\/strong><\/p>\n<ul>\n<li>-eq: Equal to<\/li>\n<li>-ne: Not equal to<\/li>\n<li>-gt: Greater than<\/li>\n<li>-lt: Less than<\/li>\n<li>-ge: Greater than or equal to<\/li>\n<li>-le: Less than or equal to<\/li>\n<\/ul>\n<p><strong>2. String Comparisons:<\/strong><\/p>\n<ul>\n<li>==: Equal to<\/li>\n<li>!=: Not equal to<\/li>\n<li>-z: Empty string<\/li>\n<li>-n: Non-empty string<\/li>\n<\/ul>\n<p><strong>3. File and Directory Checks:<\/strong><\/p>\n<ul>\n<li>-e: Exists<\/li>\n<li>-f: Regular file<\/li>\n<li>-d: Directory<\/li>\n<li>-r: Readable<\/li>\n<li>-w: Writable<\/li>\n<li>-x: Executable<\/li>\n<\/ul>\n<h2>Example of using If Statement:<\/h2>\n<p>Let&#8217;s illustrate the usage of if statements with a few examples:<\/p>\n<p><strong>Example 1: Numeric Comparison<\/strong><\/p>\n<h1>!\/bin\/bash<\/h1>\n<pre><code>count=10\n\nif [ $count -gt 0 ]\nthen\n    echo \"Count is positive.\"\nelse\n    echo \"Count is zero or negative.\"\nfi<\/code><\/pre>\n<p><strong>Example 2: String Comparison<\/strong><\/p>\n<h1>!\/bin\/bash<\/h1>\n<pre><code>name=\"Alice\"\n\nif [ \"$name\" == \"Alice\" ]\nthen\n    echo \"Hello, Alice!\"\nelse\n    echo \"You are not Alice.\"\nfi<\/code><\/pre>\n<h2>Example 3: File Check<\/h2>\n<pre><code>    #!\/bin\/bash\n\nfile_path=\"\/path\/to\/file.txt\"\n\nif [ -f \"$file_path\" ]\nthen\n    echo \"File exists.\"\nelse\n    echo \"File does not exist.\"\nfi<\/code><\/pre>\n<p><strong>Compound Condition<\/strong><br \/>\nYou can combine multiple conditions using logical operators like &amp;&amp; (AND) and || (OR). Here&#8217;s an example:<\/p>\n<h1>!\/bin\/bash<\/h1>\n<pre><code>age=25\ngrade=\"A\"\n\nif [ $age -gt 18 ] && [ \"$grade\" == \"A\" ]\nthen\n    echo \"Congratulations! You are eligible for a scholarship.\"\nelse\n    echo \"Sorry, you are not eligible for a scholarship.\"\nfi<\/code><\/pre>\n<p><strong>Nested If statement<\/strong><br \/>\nIn your bash script, you have the flexibility to incorporate multiple if statements as needed. Furthermore, it is entirely possible to nest an if statement within another if statement, creating what is referred to as a nested if statement.<\/p>\n<p><strong>Syntax of nested if statement<\/strong><br \/>\nif condition1<br \/>\nthen<\/p>\n<h1>Code block executed when condition1 is true<\/h1>\n<pre><code>    if condition2\n    then\n        # Code block executed when both condition1 and condition2 are true\n    else\n        # Code block executed when condition1 is true, but condition2 is false\n    fi\n\nelse\n    # Code block executed when condition1 is false\nfi<\/code><\/pre>\n<h2>Example of Nested if statement<\/h2>\n<p>Let&#8217;s explore an example to demonstrate the application of nested if statements:<\/p>\n<pre><code>#!\/bin\/bash\n\nnum=10\n\nif [ $num -gt 0 ]\nthen\n    echo \"The number is positive.\"\n\n    if (( num % 2 == 0 ))\n    then\n        echo \"The number is even.\"\n    else\n        echo \"The number is odd.\"\n    fi\n\nelse\n    echo \"The number is not positive.\"\nfi<\/code><\/pre>\n<p><strong>Conclusion<\/strong><br \/>\nThe Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions. By leveraging conditionals, such as numeric and string comparisons, and file and directory checks, you can create dynamic and responsive scripts. Additionally, nesting if statements provide even greater flexibility and precision in your conditional logic. Mastering the Bash if statement is essential for effective scripting in Unix-based operating systems. By understanding its syntax, conditionals, and examples, you can create robust scripts that adapt to different scenarios and make your automation tasks more efficient.<\/p>\n<h2>FAQs (Frequently Asked Questions) related to Bash if statements:<\/h2>\n<p><strong>Q1. Can I have multiple conditions in a single if statement?<\/strong><br \/>\nA1. Yes, you can combine multiple conditions using logical operators such as &amp;&amp; (AND) and || (OR) to create compound conditions within a single if statement.<\/p>\n<p><strong>Q2. Can I use the if statement to check the existence of a file or directory?<\/strong><br \/>\nA2. Absolutely. Bash provides conditionals like -e, -f, and -d to check the existence of a file or directory, along with other conditionals to check for readability, writability, and executability.<\/p>\n<p><strong>Q3. Can I nest if statements to multiple levels?<\/strong><br \/>\nA3. Yes, you can nest if statements to multiple levels, but it is recommended to maintain code readability and avoid excessive nesting, which can make the code harder to understand.<\/p>\n<p><strong>Q4. Can I have an else statement without an if statement?<\/strong><br \/>\nA4. No, an else statement must always be associated with an if statement. It provides the code block to be executed when the if condition evaluates to false.<\/p>\n<p><strong>Q5. Can I use variables in if statements?<\/strong><br \/>\nA5. Yes, you can use variables in if statements. Just make sure to properly quote and handle any special characters or spaces in the variable values.<\/p>\n<p><strong>Q6. Can I use arithmetic comparisons in if statements?<\/strong><br \/>\nA6. Yes, you can use arithmetic comparisons by enclosing the expressions within double parentheses ((&#8230;)) or using the -eq, -ne, -gt, -lt, -ge, and -le operators.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bash, short for &quot;Bourne Again SHell,&quot; is a powerful scripting language used in Unix-based operating systems. One of the fundamental constructs in Bash programming is the if statement. The if statement allows you to control the flow of your script based on specific conditions. In this article, we will delve into the intricacies of Bash [&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":[213],"tags":[],"class_list":["post-17094","post","type-post","status-publish","format-standard","hentry","category-bash"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bash scripting if Statement With Examples<\/title>\n<meta name=\"description\" content=\"The Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions.\" \/>\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\/bash-scripting-if-statement-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash scripting if Statement With Examples\" \/>\n<meta property=\"og:description\" content=\"The Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-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-07-05T05:23:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Bash scripting if Statement With Examples\",\"datePublished\":\"2023-07-05T05:23:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/\"},\"wordCount\":666,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg\",\"articleSection\":[\"Bash\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/\",\"name\":\"Bash scripting if Statement With Examples\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg\",\"datePublished\":\"2023-07-05T05:23:17+00:00\",\"description\":\"The Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bash\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/bash\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bash scripting if Statement With 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":"Bash scripting if Statement With Examples","description":"The Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions.","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\/bash-scripting-if-statement-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Bash scripting if Statement With Examples","og_description":"The Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions.","og_url":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-07-05T05:23:17+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Bash scripting if Statement With Examples","datePublished":"2023-07-05T05:23:17+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/"},"wordCount":666,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg","articleSection":["Bash"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/","url":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/","name":"Bash scripting if Statement With Examples","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg","datePublished":"2023-07-05T05:23:17+00:00","description":"The Bash if statement is a fundamental construct that allows you to control the flow of your scripts based on specific conditions.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1688533972336-Bash%20scripting%20if%20statement%20with%20examples.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/bash-scripting-if-statement-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Bash","item":"https:\/\/prepbytes.com\/blog\/category\/bash\/"},{"@type":"ListItem","position":3,"name":"Bash scripting if Statement With 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\/17094","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=17094"}],"version-history":[{"count":1,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17094\/revisions"}],"predecessor-version":[{"id":17095,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17094\/revisions\/17095"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=17094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=17094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=17094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}