<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>awk &#8211; Accidents Happen</title>
	<atom:link href="https://ah.thameera.com/tag/awk/feed/" rel="self" type="application/rss+xml" />
	<link>https://ah.thameera.com</link>
	<description>In the dark</description>
	<lastBuildDate>Wed, 25 Oct 2017 15:23:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">56521109</site>	<item>
		<title>100s of useful AWK examples</title>
		<link>https://ah.thameera.com/100s-of-useful-awk-examples/</link>
					<comments>https://ah.thameera.com/100s-of-useful-awk-examples/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Wed, 25 Oct 2017 15:23:33 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=614</guid>

					<description><![CDATA[Came across this nice cheatsheet with awk examples on Hacker News today: Github link awk is a highly underrated Unix utility. I&#8217;ve seen very few developers use it, but it&#8217;s both powerful and useful. Awk is a language of its own, but you don&#8217;t need to master it to start using it. Some time back, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Came across this nice cheatsheet with awk examples on <a href="https://news.ycombinator.com/item?id=15549318">Hacker News</a> today: <a href="https://github.com/learnbyexample/Command-line-text-processing/blob/master/gnu_awk.md">Github link</a></p>
<p><a href="https://en.wikipedia.org/wiki/AWK">awk</a> is a highly underrated Unix utility. I&#8217;ve seen very few developers use it, but it&#8217;s both powerful and useful. Awk is a language of its own, but you don&#8217;t need to master it to start using it.</p>
<p>Some time back, I moved a large bunch of files to a home directory in a server by mistake. I had used the following (naive) command to move them back to the original location (according to my notebook):</p>
<blockquote><p><code>ls -ltr | grep '14:57' | awk '{print $8}' | xargs -I '{}' mv {} vftemp</code></p></blockquote>
<p>Apparently I had exploited the fact that the moved files all had the <code>14:57</code> time stamp and filtered them with grep, and then used <code>awk</code> to get the 8th column of the list, which should have been the filenames and moved them back.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/100s-of-useful-awk-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">614</post-id>	</item>
	</channel>
</rss>
