{"id":16905,"date":"2023-06-27T07:35:46","date_gmt":"2023-06-27T07:35:46","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=16905"},"modified":"2023-06-27T07:35:46","modified_gmt":"2023-06-27T07:35:46","slug":"bash-script-for-loop","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/","title":{"rendered":"Bash Script For Loop"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg\" alt=\"\" \/><\/p>\n<p>In this blog, we will explore the utilization of the Bash scripts for loop. Similar to other programming languages, Bash shell scripting offers support for &#8216;for loops&#8217; to accomplish iterative tasks. It allows us to iterate through a specific set of statements across a range of words in a string or elements in an array.<\/p>\n<h2>What are Bash Scripts for Loop?<\/h2>\n<p>The Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values. The general syntax of the for loop in Bash is as follows:<\/p>\n<h3>Syntax of Bash Scripts for Loop<\/h3>\n<pre><code>for variable in list\ndo\n    # Statements to be executed\ndone<\/code><\/pre>\n<p><strong>Explanation:<\/strong><br \/>\nHere&#8217;s a breakdown of each component:<\/p>\n<p><strong>for:<\/strong> Keyword indicating the start of the for loop.<br \/>\n<strong>variable:<\/strong> A variable that takes the value of each item in the list during each iteration of the loop.<br \/>\n<strong>in:<\/strong> Keyword separating the variable and the list.<br \/>\n<strong>list:<\/strong> A collection of values over which the loop iterates. It can be a series of words in a string, elements in an array, or a sequence generated using a range.<br \/>\n<strong>do:<\/strong> Keyword indicating the beginning of the loop&#8217;s block of statements.<br \/>\n<strong># Statements to be executed:<\/strong> Placeholder for the actual code that will be executed during each iteration.<br \/>\n<strong>done:<\/strong> Keyword indicating the end of the loop.<\/p>\n<h3>Basic For Loop Example of Bash Script<\/h3>\n<p>Here&#8217;s an example of a Bash script for loop that iterates over a range of numbers and prints each value:<\/p>\n<pre><code>for i in {1..5}\ndo\n    echo \"Number: $i\"\ndone<\/code><\/pre>\n<p>In this example, the loop will iterate from 1 to 5, and for each iteration, it will print the value of the variable i.<\/p>\n<h3>Example of For Loop to Read a Range in Bash Script<\/h3>\n<p>Here&#8217;s an example of a Bash script for loop that reads a range of numbers and performs a specific action for each value:<\/p>\n<pre><code>#!\/bin\/bash\n\n# Read a range of numbers from the user\nread -p \"Enter the start value: \" start\nread -p \"Enter the end value: \" end\n\n# Iterate over the range of numbers\nfor (( i = start; i <= end; i++ ))\ndo\n    echo \"Number: $i\"\n    # Perform additional actions with each number\ndone<\/code><\/pre>\n<p>In this script, the user is prompted to enter the start and end values of the range. The for loop then iterates from the start value to the end value, inclusively. For each iteration, it prints the current number using the echo command. You can modify the loop body to perform additional actions with each number as needed.<\/p>\n<p><strong>Note:<\/strong> The double parentheses (( )) are used for arithmetic operations within the for loop, allowing us to increment the variable i using i++.<\/p>\n<h3>Example of For Loop to Read a Range with Increment\/Decrement in Bash Script<\/h3>\n<p>Here's an example of a Bash script for loop that reads a range of numbers with a specified increment or decrement:<\/p>\n<pre><code>#!\/bin\/bash\n\n# Read the start, end, and step values from the user\nread -p \"Enter the start value: \" start\nread -p \"Enter the end value: \" end\nread -p \"Enter the step value: \" step\n\n# Iterate over the range of numbers with the specified step\nif (( start <= end )); then\n  for (( i = start; i <= end; i += step ))\n  do\n      echo \"Number: $i\"\n      # Perform additional actions with each number\n  done\nelse\n  for (( i = start; i >= end; i -= step ))\n  do\n      echo \"Number: $i\"\n      # Perform additional actions with each number\n  done\nfi<\/code><\/pre>\n<p><strong>Explanation<\/strong><br \/>\nIn this script, the user is prompted to enter the start value, end value, and step value for the range. The script then checks whether the start value is less than or equal to the end value. If it is, the for loop iterates from the start value to the end value, incrementing the variable i by the specified step value on each iteration. If the start value is greater than the end value, the for loop iterates in a decrementing manner using the specified step value.<\/p>\n<p>For each iteration, the script prints the current number using the echo command. You can modify the loop body to perform additional actions with each number as needed.<\/p>\n<h3>Example of For Loop to Read White Spaces in String as Word Separators in Bash Script<\/h3>\n<p>Here's an example of a Bash script for loop that reads white spaces as word separators in a string:<\/p>\n<pre><code>#!\/bin\/bash\n\n# Read the input string from the user\nread -p \"Enter a string with white spaces: \" input_string\n\n# Set the internal field separator (IFS) to white space\nIFS=' '\n\n# Read each word in the input string using a for loop\nfor word in $input_string\ndo\n    echo \"Word: $word\"\n    # Perform additional actions with each word\ndone<\/code><\/pre>\n<p><strong>Explanation<\/strong><br \/>\nIn this script, the user is prompted to enter a string that contains white spaces. The internal field separator (IFS) is set to a white space character using IFS=' '. This setting allows the for loop to treat white spaces as word separators when reading the input string.<\/p>\n<p>The for loop iterates over each word in the input string, where word is the variable that stores the current word during each iteration. The script then prints each word using the echo command. You can modify the loop body to perform additional actions with each word as needed.<\/p>\n<p><strong>Note:<\/strong> By default, the for loop in Bash splits the input string based on whitespace and treats each word as a separate iteration.<\/p>\n<h3>Example of For Loop to Read each line in String as a word in Bash Script<\/h3>\n<p>To read each line in a string as a word using a for loop in a Bash script, you can use a combination of the printf command and command substitution. Here's an example:<\/p>\n<pre><code>#!\/bin\/bash\n\n# Read the input string from the user\nread -p \"Enter a string with line breaks: \" input_string\n\n# Use printf to replace line breaks with spaces\nformatted_string=$(printf \"%s \" \"$input_string\")\n\n# Read each word in the formatted string using a for loop\nfor word in $formatted_string\ndo\n    echo \"Word: $word\"\n    # Perform additional actions with each word\ndone<\/code><\/pre>\n<p><strong>Explanation<\/strong><br \/>\nIn this script, the user is prompted to enter a string that may contain line breaks. The printf command is used to replace each line break with a space, resulting in a formatted string where each line is treated as a word. The formatted string is stored in the variable formatted_string using command substitution ($(...)).<\/p>\n<p>The for loop then iterates over each word in the formatted string, where word is the variable that stores the current word during each iteration. The script prints each word using the echo command. You can modify the loop body to perform additional actions with each word as needed.<\/p>\n<p><strong>Note:<\/strong> The printf command with the format &quot;%s &quot; replaces each line break with a space. If you need a different separator or need to handle different formatting scenarios, you can modify the printf command accordingly.<\/p>\n<p><strong>Conclusion<\/strong><br \/>\nIn Bash scripting, the for loop is a powerful construct that allows you to iterate over a list of values and perform repetitive tasks. By defining a loop variable and a list of values, you can execute a set of statements for each value in the list. The for loop is flexible and can be customized to suit various scenarios, making it a fundamental tool in Bash scripting.<\/p>\n<h2>Frequently Asked Questions (FAQs) related to Bash script for loop:<\/h2>\n<p><strong>Q1. What can be used as a list in the for loop?<\/strong><br \/>\nThe list in a Bash for loop can be a series of words in a string, elements in an array, or a sequence generated using a range.<\/p>\n<p><strong>Q2. Can I specify a step value for iterating in a for loop?<\/strong><br \/>\nYes, you can specify a step value for iterating in a for loop. By using arithmetic operations on the loop variable, you can control the increment or decrement between iterations.<\/p>\n<p><strong>Q3. How can I read each line or word in a string using a for loop?<\/strong><br \/>\nTo read each line as a word in a string, you can replace line breaks with spaces using the printf command and command substitution. To read each word in a string, you can set the internal field separator (IFS) to a space.<\/p>\n<p><strong>Q4. Can I perform additional actions with each value in a for loop?<\/strong><br \/>\nYes, you can perform additional actions within the loop body for each value. This allows you to process the value, perform calculations, conditionally execute code, or update variables as needed.<\/p>\n<p><strong>Q5. Can I nest for loops in Bash scripting?<\/strong><br \/>\nYes, you can nest for loops in Bash scripting. This allows you to create more complex iterations and perform tasks on multiple levels of nested lists.<\/p>\n<p><strong>Q6. Are there any alternative loop constructs in Bash?<\/strong><br \/>\nYes, besides the for loop, Bash also provides while and until loops. While loops continue executing as long as a specified condition is true, while until loops continue executing until a specified condition becomes true.<\/p>\n<p><strong>Q7. How can I exit or skip a for loop prematurely?<\/strong><br \/>\nYou can use the break statement to exit a for loop prematurely. If you want to skip the current iteration and proceed to the next one, you can use the continue statement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will explore the utilization of the Bash scripts for loop. Similar to other programming languages, Bash shell scripting offers support for &#8216;for loops&#8217; to accomplish iterative tasks. It allows us to iterate through a specific set of statements across a range of words in a string or elements in an array. [&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":[4],"tags":[],"class_list":["post-16905","post","type-post","status-publish","format-standard","hentry","category-operating-system"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bash Script For Loop<\/title>\n<meta name=\"description\" content=\"Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values.\" \/>\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-script-for-loop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bash Script For Loop\" \/>\n<meta property=\"og:description\" content=\"Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/\" \/>\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-06-27T07:35:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.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-script-for-loop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Bash Script For Loop\",\"datePublished\":\"2023-06-27T07:35:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/\"},\"wordCount\":1263,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg\",\"articleSection\":[\"Operating system\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/\",\"name\":\"Bash Script For Loop\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg\",\"datePublished\":\"2023-06-27T07:35:46+00:00\",\"description\":\"Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operating system\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/operating-system\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bash Script For Loop\"}]},{\"@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 Script For Loop","description":"Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values.","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-script-for-loop\/","og_locale":"en_US","og_type":"article","og_title":"Bash Script For Loop","og_description":"Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values.","og_url":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-06-27T07:35:46+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.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-script-for-loop\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Bash Script For Loop","datePublished":"2023-06-27T07:35:46+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/"},"wordCount":1263,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg","articleSection":["Operating system"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/","url":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/","name":"Bash Script For Loop","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg","datePublished":"2023-06-27T07:35:46+00:00","description":"Bash script for loop allows you to execute a set of statements repeatedly, iterating over a list of values.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1687851107264-Bash%20Script%20For%20Loop.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/bash-script-for-loop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Operating system","item":"https:\/\/prepbytes.com\/blog\/category\/operating-system\/"},{"@type":"ListItem","position":3,"name":"Bash Script For Loop"}]},{"@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\/16905","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=16905"}],"version-history":[{"count":1,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/16905\/revisions"}],"predecessor-version":[{"id":16907,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/16905\/revisions\/16907"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=16905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=16905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=16905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}