<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Shell-Script on Bill Glover</title>
		<link>https://old.bill.dev/tags/shell-script/</link>
		<description>Recent content in Shell-Script on Bill Glover</description>
		<generator>Hugo</generator>
		<language>en-gb</language>
		
			<managingEditor>hello@bill.dev (Bill)</managingEditor>
		
		
			<webMaster>hello@bill.dev (Bill)</webMaster>
		
		
		
			<lastBuildDate>Sun, 22 Sep 2024 19:05:36 +0100</lastBuildDate>
		
			<atom:link href="https://old.bill.dev/tags/shell-script/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Writing multi-line strings into a text file in bash script</title>
				<link>https://old.bill.dev/notes/write-multiline-strings-in-bash-script/</link>
				<pubDate>Thu, 24 Mar 2022 22:36:19 +0000</pubDate><author>hello@bill.dev (Bill)</author>
				<guid>https://old.bill.dev/notes/write-multiline-strings-in-bash-script/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; I wanted to use a shell script to write multi-line strings into a text file. I didn&amp;rsquo;t want parameters or commands to be substituted in the text being written.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; You need to quote the limit string when specifying your here-document.&lt;/p&gt;&#xA;&lt;h3 id=&#34;references&#34;&gt;References&lt;/h3&gt;&#xA;&lt;p&gt;My fist discovery was that the pattern for doing this in a shell script was called a &amp;ldquo;Here Document&amp;rdquo;. I don&amp;rsquo;t think I have ever looked up the &lt;code&gt;bash&lt;/code&gt; manual before. But this is where I found the solution.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
