<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>011.08.Arrays-Strings-in-bash - EmbLogic</title>
      <link>https://www.emblogic.com/forum/categories/011-08-arrays-strings-in-bash/feed.rss</link>
      <pubDate>Fri, 12 Jun 26 16:05:17 +0530</pubDate>
         <description>011.08.Arrays-Strings-in-bash - EmbLogic</description>
   <language>en-CA</language>
   <atom:link href="/forum/discussions/feed.rss" rel="self" type="application/rss+xml" />
		<item>
			<title>1. Dynamic String Manipulation and Formatting</title>
			<link>https://www.emblogic.com/forum/discussion/1844/1-dynamic-string-manipulation-and-formatting</link>
			<pubDate>Sat, 13 Jul 2024 16:21:55 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1844@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>1.</span> Dynamic String Manipulation and Formatting</span></span></span></h3><div><span><span><span>Write a Bash script that accepts a full name from the user (in the format "First Middle Last") and then formats it into "Last, First Middle". Ensure the script handles cases where the middle name might be absent.</span></span></span></div><div><span><span><span><span>→ </span><span>Expected Output Example:</span></span></span></span></div><div><span><span><span><span>Enter your full name: John Michael Doe</span></span></span></span></div><div><span><span><span>Formatted Name: Doe, John Michael</span></span></span></div>]]></description>
		</item>
		<item>
			<title>2. Multi-level String Length Validation</title>
			<link>https://www.emblogic.com/forum/discussion/1843/2-multi-level-string-length-validation</link>
			<pubDate>Sat, 13 Jul 2024 16:21:43 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1843@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>2. </span>Multi-level String Length Validation</span></span></span></h3><div><span><span><span>Write a Bash script that reads a string from the user and classifies it into three categories: "Short string" if less than 5 characters, "Medium string" if between 5 and 15 characters, and "Long string" if more than 15 characters. Print the appropriate classification.</span></span></span></div><div><span><span><span><span>→ </span><span>Expected Output Example:</span></span></span></span></div><div><span><span><span><span>Enter a string: BashScripting</span></span></span></span></div><div><span><span><span>Medium string</span></span></span></div>]]></description>
		</item>
		<item>
			<title>3. Advanced Substring Manipulation</title>
			<link>https://www.emblogic.com/forum/discussion/1842/3-advanced-substring-manipulation</link>
			<pubDate>Sat, 13 Jul 2024 16:21:29 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1842@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>3.</span> Advanced Substring Manipulation</span></span></span></h3><div><span><span><span>Write a Bash script that extracts the username and domain name from an email address, then creates a new email address by reversing the domain and username (e.g., `user@example.com` becomes `example@user.com`).</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter an email address: user@example.com</span></span></span></span></div><div><span><span><span>Reversed email: example@user.com</span></span></span></div>]]></description>
		</item>
		<item>
			<title>4. Recursive String Replacement</title>
			<link>https://www.emblogic.com/forum/discussion/1841/4-recursive-string-replacement</link>
			<pubDate>Sat, 13 Jul 2024 16:21:17 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1841@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>4.</span> Recursive String Replacement</span></span></span></h3><div><span><span><span>Write a Bash script that performs recursive replacement of the word "foo" with "bar" in a given string until no more "foo" can be found. Print the modified string after each replacement iteration.</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter a string: foofoofoo</span></span></span></span></div><div><span><span><span>Iteration 1: barbarfoo</span></span></span></div><div><span><span><span>Iteration 2: barbarbar</span></span></span></div>]]></description>
		</item>
		<item>
			<title>5. Case-Insensitive Substring Replacement</title>
			<link>https://www.emblogic.com/forum/discussion/1840/5-case-insensitive-substring-replacement</link>
			<pubDate>Sat, 13 Jul 2024 16:20:59 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1840@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>5.</span> Case-Insensitive Substring Replacement</span></span></span></h3><div><span><span><span>Write a Bash script that reads a string and replaces all occurrences of the word "hello" (case insensitive) with "hi". Ensure the replacement is case insensitive.</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter a string: Hello world, hello Bash!</span></span></span></span></div><div><span><span><span>Modified string: hi world, hi Bash!</span></span></span></div>]]></description>
		</item>
		<item>
			<title>6. Splitting Strings and Counting Elements</title>
			<link>https://www.emblogic.com/forum/discussion/1839/6-splitting-strings-and-counting-elements</link>
			<pubDate>Sat, 13 Jul 2024 16:20:45 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1839@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>6. </span>Splitting Strings and Counting Elements</span></span></span></h3><div><span><span><span>Write a Bash script that splits a colon-separated string into an array and prints each element on a new line. Additionally, count the number of elements and print the count.</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter a colon-separated string: one:two:three:four</span></span></span></span></div><div><span><span><span>one</span></span></span></div><div><span><span><span>two</span></span></span></div><div><span><span><span>three</span></span></span></div><div><span><span><span>four</span></span></span></div><div><span><span><span>Total elements: 4</span></span></span></div>]]></description>
		</item>
		<item>
			<title>7. Extracting Components from a URL</title>
			<link>https://www.emblogic.com/forum/discussion/1838/7-extracting-components-from-a-url</link>
			<pubDate>Sat, 13 Jul 2024 16:20:30 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1838@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><strong>7.</strong></span><span><strong> Extracting Components from a URL</strong></span></span></span></h3><div><span><span><span>Write a Bash script that extracts the protocol, domain, and path from a given URL. Print each component separately.</span></span></span></div><div><span><span><span><span>→</span></span><span> Expected Output Example:</span></span></span></div><div><span><span><span>Enter a URL: <a href="https://example.com/path/to/resource" target="_blank" rel="nofollow">https://example.com/path/to/resource</a></span></span></span></div><div><span><span><span>Protocol: https</span></span></span></div><div><span><span><span>Domain: example.com</span></span></span></div><div><span><span><span>Path: /path/to/resource</span></span></span></div>]]></description>
		</item>
		<item>
			<title>8. Advanced String Padding and Alignment</title>
			<link>https://www.emblogic.com/forum/discussion/1837/8-advanced-string-padding-and-alignment</link>
			<pubDate>Sat, 13 Jul 2024 16:20:16 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1837@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>8.</span> Advanced String Padding and Alignment</span></span></span></h3><div><span><span><span>Write a Bash script that reads a string and right-pads it with dots (.) to ensure it is at least 20 characters long. If the string is already 20 characters or longer, print it as is. Also, print the padded string's length.</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter a string: Hello</span></span></span></span></div><div><span><span><span>Padded string: 'Hello...............'</span></span></span></div><div><span><span><span>Length of padded string: 20</span></span></span></div>]]></description>
		</item>
		<item>
			<title>9. String Reversal with Special Character Handling</title>
			<link>https://www.emblogic.com/forum/discussion/1836/9-string-reversal-with-special-character-handling</link>
			<pubDate>Sat, 13 Jul 2024 16:20:02 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1836@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span><strong>9.</strong></span><span><strong> String Reversal with Special Character Handling</strong></span></span></span></span></h3><div><span><span><span>Write a Bash script that reads a string and reverses it, ensuring that any special characters (non-alphanumeric) remain in their original positions.</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter a string: a!b@c#d</span></span></span></span></div><div><span><span><span>Reversed string: d!c@b#a</span></span></span></div>]]></description>
		</item>
		<item>
			<title>10. Character Frequency Analysis</title>
			<link>https://www.emblogic.com/forum/discussion/1835/10-character-frequency-analysis</link>
			<pubDate>Sat, 13 Jul 2024 16:19:44 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1835@/forum/discussions</guid>
			<description><![CDATA[<h3><span><span><span><span>10.</span> Character Frequency Analysis</span></span></span></h3><div><span><span><span>Write a Bash script that reads a string and outputs the frequency of each character in the string. Print the characters and their frequencies in descending order of frequency.</span></span></span></div><div><span><span><span><span>→</span> Expected Output Example:</span></span></span></div><div><span><span><span><span>Enter a string: hello world</span></span></span></span></div><div><span><span><span>l: 3</span></span></span></div><div><span><span><span>o: 2</span></span></span></div><div><span><span><span>h: 1</span></span></span></div><div><span><span><span>e: 1</span></span></span></div><div><span><span><span>w: 1</span></span></span></div><div><span><span><span>r: 1</span></span></span></div><div><span><span><span>d: 1</span></span></span></div>]]></description>
		</item>
		<item>
			<title>Issues, queries, suggestions or discussion related to Arrays Strings in bash</title>
			<link>https://www.emblogic.com/forum/discussion/1834/issues-queries-suggestions-or-discussion-related-to-arrays-strings-in-bash</link>
			<pubDate>Sat, 13 Jul 2024 12:08:41 +0530</pubDate>
			<dc:creator>pravjot</dc:creator>
			<guid isPermaLink="false">1834@/forum/discussions</guid>
			<description><![CDATA[<span><span>Issues, queries, suggestions or discussion related to&nbsp;</span></span><div><div><span style="font-family: Georgia; color: #666666; font-size: large;"><b>08.Arrays-Strings-in-bash</b></span></div><div><span><span><span>should be posted here.</span></span></span></div></div>]]></description>
		</item>
   </channel>
</rss>