<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ack on Amit Agarwal Linux Blog</title>
    <link>/tags/ack/</link>
    <description>Recent content in Ack on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 02 Apr 2022 00:00:00 +0530</lastBuildDate>
    
	<atom:link href="/tags/ack/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Creating and using ackrc</title>
      <link>/2022/04/02/Creating-and-using-ackrc/</link>
      <pubDate>Sat, 02 Apr 2022 00:00:00 +0530</pubDate>
      
      <guid>/2022/04/02/Creating-and-using-ackrc/</guid>
      <description>&lt;p&gt;&lt;strong&gt;ack&lt;/strong&gt; is a fantastic replacement for grep and probably much more than grep. Here is what the dnf info has to say about ack&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Name         : ack
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Architecture : noarch
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Summary      : Grep-like text finder
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;URL          : http://beyondgrep.com/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;License      : Artistic 2.0
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Description  : Ack is designed as a replacement for grep.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And their websites says -&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Designed for programmers with large heterogeneous trees of source code, ack is written in portable Perl 5 and takes advantage of the power of Perl&amp;rsquo;s regular expressions.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>ack on solaris – grep recursively.</title>
      <link>/2010/06/25/ack-on-solaris-grep-recursively/</link>
      <pubDate>Fri, 25 Jun 2010 11:47:07 +0000</pubDate>
      
      <guid>/2010/06/25/ack-on-solaris-grep-recursively/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&amp;lt;span style=&amp;quot;background-color: #ffffff;&amp;quot;&amp;gt;Some days back I posted an article on ack &amp;lt;a href=&amp;quot;http://blog.amit-agarwal.co.in/2009/08/24/more-powerful-grep-ack/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;here&lt;/a&gt;. Today I was working on Solaris 9 and the default grep installed on the system does not have the &amp;amp;#8221;-r&amp;amp;#8221; option to search recursively. So, you know for all the time I had to keep using find with grep to work with directories recursively. This was something similar to the one below:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;span style=&amp;quot;background-color: #ffffff;&amp;quot;&amp;gt;find . -type f -exec grep amit {} \; &lt;/span&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>more powerful grep – ack</title>
      <link>/2010/05/26/more-powerful-grep-ack/</link>
      <pubDate>Wed, 26 May 2010 11:41:56 +0000</pubDate>
      
      <guid>/2010/05/26/more-powerful-grep-ack/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;For last couple of days, I have been using ack instead of grep. Here is description of ack:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Ack is designed as a replacement for grep.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There are couple of reasons I am using ack. First and foremost being it does not require a filename. So, for seaching amit in all files recursively under the current directory I can simply use&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ack amit&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;More reasons to use ack:&lt;/p&gt;
&lt;p&gt;It supports pager option and there can be a rc file that can be used to define the default options that needs to be used with ack. Here is the contents of my &lt;strong&gt;$HOME/.ackrc&lt;/strong&gt; file.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim search multiple files</title>
      <link>/2010/03/25/vim-search-multiple-files/</link>
      <pubDate>Thu, 25 Mar 2010 02:41:28 +0000</pubDate>
      
      <guid>/2010/03/25/vim-search-multiple-files/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Searching some pattern in multiple files is something that is required very often. There are multiple ways to do it, like &amp;lt;a class=&amp;quot;zem_slink freebase/en/grep&amp;quot; title=&amp;quot;Grep&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Grep&amp;quot;&amp;gt;grep&lt;/a&gt;, &amp;lt;a class=&amp;quot;zem_slink freebase/guid/9202a8c04000641f8000000006b66ec6&amp;quot; title=&amp;quot;Ack (command-line utility)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Ack_%28command-line_utility%29&amp;quot;&amp;gt;ack&lt;/a&gt;, find and so on so forth. But if your editor already has the capability to do that, then why leave your favourite vi and go to shell. I will point you to some scripts and some wiki pages on how to do this 🙂&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
