<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How To Assign Output of a Linux Command to a Variable	</title>
	<atom:link href="https://www.tecmint.com/assign-linux-command-output-to-variable/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/assign-linux-command-output-to-variable/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 19:25:41 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Timi		</title>
		<link>https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1755123</link>

		<dc:creator><![CDATA[Timi]]></dc:creator>
		<pubDate>Fri, 01 Apr 2022 10:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24222#comment-1755123</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1755122&quot;&gt;Timi&lt;/a&gt;.

The command &lt;strong&gt;module list python&lt;/strong&gt; writes to the command line:

Currently Loaded Modules Matching: python/3.7.4]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1755122">Timi</a>.</p>
<p>The command <strong>module list python</strong> writes to the command line:</p>
<p>Currently Loaded Modules Matching: python/3.7.4</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Timi		</title>
		<link>https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1755122</link>

		<dc:creator><![CDATA[Timi]]></dc:creator>
		<pubDate>Fri, 01 Apr 2022 10:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24222#comment-1755122</guid>

					<description><![CDATA[In my case it does not work for: 
&lt;pre&gt;
currentModule=$(module list python)
echo &quot;Current loaded module is $currentModule&quot;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In my case it does not work for: </p>
<pre>
currentModule=$(module list python)
echo "Current loaded module is $currentModule"
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1330387</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Mon, 27 Apr 2020 06:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24222#comment-1330387</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1329708&quot;&gt;Depressing Engineer&lt;/a&gt;.

@Depressing

True, it was a typo during publishing. We will modify the article as soon as possible. Thanks for the feedback.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1329708">Depressing Engineer</a>.</p>
<p>@Depressing</p>
<p>True, it was a typo during publishing. We will modify the article as soon as possible. Thanks for the feedback.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Depressing Engineer		</title>
		<link>https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-1329708</link>

		<dc:creator><![CDATA[Depressing Engineer]]></dc:creator>
		<pubDate>Sat, 25 Apr 2020 18:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24222#comment-1329708</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-861013&quot;&gt;Aaron Kili&lt;/a&gt;.

From the link Above &quot;The backtick is also easily confused with a single quote.&quot;

This happened in this article for the first figure.
&lt;pre&gt;
...
OR
variable_name=&#039;command&#039;
variable_name=&#039;command [option ...] arg1 arg2 ...&#039;
...
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-861013">Aaron Kili</a>.</p>
<p>From the link Above &#8220;The backtick is also easily confused with a single quote.&#8221;</p>
<p>This happened in this article for the first figure.</p>
<pre>
...
OR
variable_name='command'
variable_name='command [option ...] arg1 arg2 ...'
...
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-863535</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Mon, 30 Jan 2017 09:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24222#comment-863535</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-863470&quot;&gt;Michael Schwager&lt;/a&gt;.

@Micheal 

Yap, how did i forget to mention this,  it&#039;s so helpful while writing scripts. Thanks for the reminder.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/assign-linux-command-output-to-variable/comment-page-1/#comment-863470">Michael Schwager</a>.</p>
<p>@Micheal </p>
<p>Yap, how did i forget to mention this,  it&#8217;s so helpful while writing scripts. Thanks for the reminder.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
