<?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 Read and Filter Awk Input from STDIN in Linux &#8211; Part 7	</title>
	<atom:link href="https://www.tecmint.com/read-awk-input-from-stdin-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/read-awk-input-from-stdin-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 12 Aug 2024 06:44:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: giuseppe		</title>
		<link>https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-803954</link>

		<dc:creator><![CDATA[giuseppe]]></dc:creator>
		<pubDate>Tue, 02 Aug 2016 09:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20896#comment-803954</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-801357&quot;&gt;Giuseppe&lt;/a&gt;.

Thank you. Going to found a solution out of the pipe.
Possibly reading the second file before the tail command. So I store results in an array to scan in the second pipe.

Giuseppe]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-801357">Giuseppe</a>.</p>
<p>Thank you. Going to found a solution out of the pipe.<br />
Possibly reading the second file before the tail command. So I store results in an array to scan in the second pipe.</p>
<p>Giuseppe</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili K		</title>
		<link>https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-803265</link>

		<dc:creator><![CDATA[Aaron Kili K]]></dc:creator>
		<pubDate>Sat, 30 Jul 2016 16:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20896#comment-803265</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-801357&quot;&gt;Giuseppe&lt;/a&gt;.

@Guiseppe

Sorry for the delay, but i hope this method with help solve your problem. 

Try to use the approach of an Awk script as follows:

tail -f /opt/red5-server108m2/log/red5.log &#124; awk -f  script.awk   file

put awk command in script.awk and use the -f option to read the script as in the command above. 

script.awk 

--------------------------------------------------------------------------------------
#!/bin/awk -f

 ‘{if (/Stream start:/){

*insertion point*

}

Check this guide for more information: https://www.gnu.org/software/gawk/manual/html_node/Naming-Standard-Input.html]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-801357">Giuseppe</a>.</p>
<p>@Guiseppe</p>
<p>Sorry for the delay, but i hope this method with help solve your problem. </p>
<p>Try to use the approach of an Awk script as follows:</p>
<p>tail -f /opt/red5-server108m2/log/red5.log | awk -f  script.awk   file</p>
<p>put awk command in script.awk and use the -f option to read the script as in the command above. </p>
<p>script.awk </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
#!/bin/awk -f</p>
<p> ‘{if (/Stream start:/){</p>
<p>*insertion point*</p>
<p>}</p>
<p>Check this guide for more information: <a target="_blank" href="https://www.gnu.org/software/gawk/manual/html_node/Naming-Standard-Input.html" rel="nofollow ugc">https://www.gnu.org/software/gawk/manual/html_node/Naming-Standard-Input.html</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Giuseppe		</title>
		<link>https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-801357</link>

		<dc:creator><![CDATA[Giuseppe]]></dc:creator>
		<pubDate>Fri, 22 Jul 2016 08:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20896#comment-801357</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800924&quot;&gt;Aaron Kili K&lt;/a&gt;.

Hello Mr. Kili, you are correct. In that point marked I want sto scan a second text file where a list of user is stored. So if user is present the stream can start else not.

Have a good day, Giuseppe]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800924">Aaron Kili K</a>.</p>
<p>Hello Mr. Kili, you are correct. In that point marked I want sto scan a second text file where a list of user is stored. So if user is present the stream can start else not.</p>
<p>Have a good day, Giuseppe</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili K		</title>
		<link>https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800924</link>

		<dc:creator><![CDATA[Aaron Kili K]]></dc:creator>
		<pubDate>Wed, 20 Jul 2016 19:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20896#comment-800924</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800825&quot;&gt;Giuseppe&lt;/a&gt;.

You are welcome @Giuseppe

If i got the question right, i suppose you want to parse another file then search for a name in that file. The difficulty is therefore reading input from a second file apart from piped input.

Let me look into the problem and figure out the solution, it will require a little time. I hope you can wait a little more, after all the solution is the most important.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800825">Giuseppe</a>.</p>
<p>You are welcome @Giuseppe</p>
<p>If i got the question right, i suppose you want to parse another file then search for a name in that file. The difficulty is therefore reading input from a second file apart from piped input.</p>
<p>Let me look into the problem and figure out the solution, it will require a little time. I hope you can wait a little more, after all the solution is the most important.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Giuseppe		</title>
		<link>https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800825</link>

		<dc:creator><![CDATA[Giuseppe]]></dc:creator>
		<pubDate>Wed, 20 Jul 2016 11:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=20896#comment-800825</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800508&quot;&gt;Giuseppe&lt;/a&gt;.

Thank you for fast, kind and comprensive reply to an old noob 60 years old.
Now I begin to write some simple code about strings operation.

Have you some gift for the 1st question?

Giuseppe]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/read-awk-input-from-stdin-in-linux/comment-page-1/#comment-800508">Giuseppe</a>.</p>
<p>Thank you for fast, kind and comprensive reply to an old noob 60 years old.<br />
Now I begin to write some simple code about strings operation.</p>
<p>Have you some gift for the 1st question?</p>
<p>Giuseppe</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
