<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>File Management on Amit Agarwal Linux Blog</title>
    <link>/tags/file-management/</link>
    <description>Recent content in File Management on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 28 Jan 2014 00:41:45 +0000</lastBuildDate>
    
	<atom:link href="/tags/file-management/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>inotify -watch for file to change</title>
      <link>/2014/01/28/inotify-watch-file-change/</link>
      <pubDate>Tue, 28 Jan 2014 00:41:45 +0000</pubDate>
      
      <guid>/2014/01/28/inotify-watch-file-change/</guid>
      <description>&lt;p&gt;Here is a simple command for you. It uses &lt;a class=&#34;zem_slink&#34; title=&#34;Inotify&#34; href=&#34;http://en.wikipedia.org/wiki/Inotify&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;inotify&lt;/a&gt; tools. So first you need to install :&lt;/p&gt;
&lt;pre class=&#34;brush: actionscript3; gutter: true; first-line: 1&#34;&gt;sudo yum install inotify-tools&lt;/pre&gt;
&lt;p&gt;and then you can try something like this:&lt;/p&gt;
&lt;pre class=&#34;brush: actionscript3; gutter: true; first-line: 1&#34;&gt;while true; 
do 
inotifywait -r -e modify --exclude=&#34;.swp&#34; . &amp;&amp; make; 
done&lt;/pre&gt;
&lt;p&gt;Here, once the file changes, we are running make, but you can do anything you want.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul zemanta-article-ul-image&#34; style=&#34;margin: 0; padding: 0; overflow: hidden;&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://dietbuddha.blogspot.com/2013/12/development-server-automatic-reload-on.html&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i1.wp.com/i.zemanta.com/noimg_111_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://dietbuddha.blogspot.com/2013/12/development-server-automatic-reload-on.html&#34; target=&#34;_blank&#34;&gt;Development Server: Automatic Reload on Code Change&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://stackoverflow.com/questions/4936229/concurrent-or-lock-access-in-bash-script-function&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/noimg_11_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://stackoverflow.com/questions/4936229/concurrent-or-lock-access-in-bash-script-function&#34; target=&#34;_blank&#34;&gt;Concurrent or lock access in bash script function&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Delete all but some directories</title>
      <link>/2013/08/16/delete-directories/</link>
      <pubDate>Fri, 16 Aug 2013 01:06:05 +0000</pubDate>
      
      <guid>/2013/08/16/delete-directories/</guid>
      <description>&lt;p&gt;I think, like me, you would have faced a lot of situations, where you wanted to delete all the files or directories in a location, leaving only the required files/directories. So, I have a directory containing lots of files/directories and I want to delete most of them except some 5/10 of them, how to I do it.&lt;/p&gt;
&lt;p&gt;I finally wrote a small &lt;a class=&#34;zem_slink&#34; title=&#34;Shell script&#34; href=&#34;http://en.wikipedia.org/wiki/Shell_script&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;script&lt;/a&gt; to do that. First save list of files that you do not want to delete in file called “listnames” and then &lt;a class=&#34;zem_slink&#34; title=&#34;Capital punishment&#34; href=&#34;http://en.wikipedia.org/wiki/Capital_punishment&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;execute&lt;/a&gt; the below script. This will give you the rm commands that you need to execute. If you want you can execute the rm command from the script, but to be able to review, I just have the commands echoed.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>cksum – compare for multiple files.</title>
      <link>/2013/04/30/cksum-compare-multiple-files/</link>
      <pubDate>Tue, 30 Apr 2013 01:15:30 +0000</pubDate>
      
      <guid>/2013/04/30/cksum-compare-multiple-files/</guid>
      <description>&lt;p&gt;If you have to compare cksum for couple of &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;files&lt;/a&gt;, the you know how cumbersome it is. So, I wrote a simple script, wherein you can create a file called cksums in the &lt;a class=&#34;zem_slink&#34; title=&#34;Working directory&#34; href=&#34;http://en.wikipedia.org/wiki/Working_directory&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;current directory&lt;/a&gt; and &lt;a class=&#34;zem_slink&#34; title=&#34;Cut, copy, and paste&#34; href=&#34;http://en.wikipedia.org/wiki/Cut%2C_copy%2C_and_paste&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;copy paste&lt;/a&gt; the result of  “**cksums ***”  into this file, and then run this script. Cool 🙂&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;#!/bin/bash -
#===============================================================================
#
#          FILE: checkcksums.sh
#
#         USAGE: ./checkcksums.sh
#
#   DESCRIPTION: Compare cksums of multiple files.
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Amit Agarwal (),
#  ORGANIZATION:
#       CREATED: 02/22/2013 09:12:17 PM IST
#      REVISION:  ---
#===============================================================================

file=cksums
while read line
do
    a=( $(echo $line) )
    if [[ -f ${a[2]} ]]
    then
        b=( $(cksum ${a[2]}) )
        if [[ $a == $b ]]
        then
            echo &#34;Cksum for ${a[2]} = ${a[0]} matches&#34;
        else
            echo &#34;Failed ::Cksum for ${a[2]} = ${a[0]} matches&#34;
        fi
    else
        echo &#34;Failed :: file ${a[2]} does not exist&#34;
    fi
done &amp;lt; $file&lt;/pre&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul zemanta-article-ul-image&#34; style=&#34;margin: 0; padding: 0; overflow: hidden;&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;https://pypi.python.org/pypi/pycksum/0.4.0&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/148494503_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;https://pypi.python.org/pypi/pycksum/0.4.0&#34; target=&#34;_blank&#34;&gt;pycksum 0.4.0&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://blog.yjl.im/2013/03/checking-if-files-are-different-using.html&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/noimg_32_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://blog.yjl.im/2013/03/checking-if-files-are-different-using.html&#34; target=&#34;_blank&#34;&gt;Checking if files are different using cmp&lt;/a&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 84px; font-size: 11px; margin: 2px 10px 10px 2px;&#34;&gt;
    &lt;a style=&#34;box-shadow: 0px 0px 4px #999; padding: 2px; display: block; border-radius: 2px; text-decoration: none;&#34; href=&#34;http://www.daniweb.com/software-development/cpp/threads/451256/alternative-to-md5-hash&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0; border: 0; display: block; width: 80px; max-width: 100%;&#34; alt=&#34;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/156191525_80_80.jpg?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;&#34; href=&#34;http://www.daniweb.com/software-development/cpp/threads/451256/alternative-to-md5-hash&#34; target=&#34;_blank&#34;&gt;Alternative to MD5 hash?&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/?px&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;border: none; float: right;&#34; alt=&#34;Enhanced by Zemanta&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>duff – find duplicate files.</title>
      <link>/2013/03/19/duff-find-duplicate-files/</link>
      <pubDate>Tue, 19 Mar 2013 11:44:38 +0000</pubDate>
      
      <guid>/2013/03/19/duff-find-duplicate-files/</guid>
      <description>&lt;p&gt;duff – description:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Description : Duff is a &lt;a class=&#34;zem_slink&#34; title=&#34;Console application&#34; href=&#34;http://en.wikipedia.org/wiki/Console_application&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;command-line utility&lt;/a&gt; for quickly finding d&lt;/p&gt;
&lt;figure style=&#34;width: 216px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/36938765@N04/3402661324&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;AURA Console&#34; alt=&#34;AURA Console&#34; src=&#34;https://i2.wp.com/farm4.static.flickr.com/3664/3402661324_c0cfc8fe54_m.jpg?resize=216%2C132&#34; width=&#34;216&#34; height=&#34;132&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;AURA Console (Photo credit: jameswatts.solfenix)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;uplicates in a&lt;br&gt;
given set of files&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;and now time to execute :&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;find . -type f -print0|duff -e0|&lt;a class=&#34;zem_slink&#34; title=&#34;Xargs&#34; href=&#34;http://en.wikipedia.org/wiki/Xargs&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;xargs&lt;/a&gt; -0&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This will print a list of duplicate files. If you directly want to delete them then you can use them in a rm command directly like ::&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vim mappings for multiple files.</title>
      <link>/2012/08/06/vim-mappings-multiple-files/</link>
      <pubDate>Mon, 06 Aug 2012 06:34:23 +0000</pubDate>
      
      <guid>/2012/08/06/vim-mappings-multiple-files/</guid>
      <description>&lt;p&gt;If you open multiple &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;files&lt;/a&gt; in vim with &lt;a class=&#34;zem_slink&#34; title=&#34;Command-line interface&#34; href=&#34;http://en.wikipedia.org/wiki/Command-line_interface&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;command line option&lt;/a&gt;. Then the only way to move between the files is &lt;strong&gt;“:n”&lt;/strong&gt; and &lt;strong&gt;“:N”&lt;/strong&gt;. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use.&lt;/p&gt;
&lt;pre class=&#34;brush: shell; gutter: true; first-line: 1&#34;&gt;map  :N
map  :n&lt;/pre&gt;
&lt;p&gt;And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>rpmconf – Tool to handle rpmsave and rpmnew files</title>
      <link>/2012/06/18/rpmconf-tool-handle-rpmsave-rpmnew-files/</link>
      <pubDate>Mon, 18 Jun 2012 02:18:40 +0000</pubDate>
      
      <guid>/2012/06/18/rpmconf-tool-handle-rpmsave-rpmnew-files/</guid>
      <description>&lt;p&gt;&lt;a class=&#34;zem_slink&#34; title=&#34;Install (Unix)&#34; href=&#34;http://en.wikipedia.org/wiki/Install_%28Unix%29&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;Install&lt;/a&gt; the utility:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;sudo yum install rpmconf&lt;/pre&gt;
&lt;p&gt;Description:&lt;/p&gt;
&lt;blockquote&gt;
&lt;dl&gt;
&lt;dt&gt;Description : This tool search for .rpmnew, .rpmsave and .rpmorig files and ask you what to do&lt;/dt&gt;
&lt;dd&gt;with them:&lt;/dd&gt;
&lt;dd&gt;Keep current version, place back old version, watch the diff or merge.&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;
&lt;p&gt;And finally run the utility:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;sudo rpmconf -a&lt;/pre&gt;
&lt;p&gt;and if there is a conflict or rpmsave or rpmnew file, then you will see something like this:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>symlinks -delete all invalid soft links in Linux/Fedora</title>
      <link>/2012/06/12/symlinks-delete-invalid-soft-links-linuxfedora/</link>
      <pubDate>Tue, 12 Jun 2012 01:05:34 +0000</pubDate>
      
      <guid>/2012/06/12/symlinks-delete-invalid-soft-links-linuxfedora/</guid>
      <description>&lt;p&gt;First of all, install symlinks if it is not installed :&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;sudo yum install symlinks&lt;/pre&gt;
&lt;p&gt;and here is the description:&lt;/p&gt;
&lt;blockquote&gt;
&lt;dl&gt;
&lt;dt&gt;Description : The symlinks utility performs maintenance on &lt;a class=&#34;zem_slink&#34; title=&#34;Symbolic link&#34; href=&#34;http://en.wikipedia.org/wiki/Symbolic_link&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;symbolic links&lt;/a&gt;.&lt;/dt&gt;
&lt;dd&gt;Symlinks checks for symlink problems, including dangling symlinks&lt;/dd&gt;
&lt;dd&gt;which point to nonexistent files.  Symlinks can also automatically&lt;/dd&gt;
&lt;dd&gt;convert absolute symlinks to relative symlinks.&lt;/dd&gt;
&lt;dd&gt;&lt;/dd&gt;
&lt;dd&gt;Install the symlinks package if you need a program for maintaining&lt;/dd&gt;
&lt;dd&gt;symlinks on your system.&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;
&lt;p&gt;and the help for the same:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Backup of files in the directory.</title>
      <link>/2011/12/01/backup-files-directory/</link>
      <pubDate>Thu, 01 Dec 2011 11:39:24 +0000</pubDate>
      
      <guid>/2011/12/01/backup-files-directory/</guid>
      <description>&lt;p&gt;I was working on some scripts and the changes that I was making in the scripts was very dynamic, which I did want to keep backing up in the version control system. But for the peace of my mind, I wanted to keep a copy of the scripts, whenever it was in working state.&lt;/p&gt;
&lt;p&gt;Since I had multiple files, so it would make more sense to have a script that could copy all the files in the &lt;a class=&#34;zem_slink&#34; title=&#34;Working directory&#34; href=&#34;http://en.wikipedia.org/wiki/Working_directory&#34; rel=&#34;wikipedia&#34;&gt;current directory&lt;/a&gt; to “old” directory without over-writing the existing files. So, I wrote a script that would postfix the files with a number. With this approach, finally what I had was the following:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Compare files excluding certain lines.</title>
      <link>/2011/10/18/compare-files-excluding-lines/</link>
      <pubDate>Tue, 18 Oct 2011 11:12:15 +0000</pubDate>
      
      <guid>/2011/10/18/compare-files-excluding-lines/</guid>
      <description>&lt;p&gt;Quick tip, you can use any expression for the &lt;a class=&#34;zem_slink&#34; title=&#34;Sed&#34; href=&#34;http://en.wikipedia.org/wiki/Sed&#34; rel=&#34;wikipedia&#34;&gt;sed&lt;/a&gt; commands in the (). With this trick you can redirect the &lt;a class=&#34;zem_slink&#34; title=&#34;Standard streams&#34; href=&#34;http://en.wikipedia.org/wiki/Standard_streams&#34; rel=&#34;wikipedia&#34;&gt;stdout&lt;/a&gt; of 2 commands to the diff command. This might become very useful, if you want to compare 2 &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34; rel=&#34;wikipedia&#34;&gt;files&lt;/a&gt;, excluding the first  line.&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;diff &amp;lt;(sed &#39;1d&#39; file) &amp;lt;(sed &#39;1d&#39; file2)&lt;/pre&gt;
&lt;p&gt;More interesting example is where the string &lt;a class=&#34;zem_slink&#34; title=&#34;American Broadcasting Company&#34; href=&#34;http://abc.go.com&#34; rel=&#34;homepage&#34;&gt;ABC&lt;/a&gt; is converted to abc before comparing in the second file with the following command:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Get yourself some conkyrc files.</title>
      <link>/2011/10/05/conkyrc-files/</link>
      <pubDate>Wed, 05 Oct 2011 15:18:56 +0000</pubDate>
      
      <guid>/2011/10/05/conkyrc-files/</guid>
      <description>&lt;p&gt;If you are looking for some nice conkyrc &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34; rel=&#34;wikipedia&#34;&gt;files&lt;/a&gt;, then you can head over to :&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://ubuntuforums.org/showthread.php?t=281865&#34; title=&#34;conkyrc&#34;&gt;Ubuntu Forums&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this thread you can see some very nice conkyrc files with screenshots. You can browse through the thread and get the one that you like. But if you are like me and would like to download all of them to see the features and commands in each of them then you would need to copy each of these files and paste them separately. But if you have to do everything manually then there’s not much of being on &lt;a class=&#34;zem_slink&#34; title=&#34;Linux&#34; href=&#34;http://www.kernel.org/&#34; rel=&#34;homepage&#34;&gt;Linux&lt;/a&gt; 🙂&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>some interesting alias</title>
      <link>/2011/09/27/interesting-alias/</link>
      <pubDate>Tue, 27 Sep 2011 07:43:01 +0000</pubDate>
      
      <guid>/2011/09/27/interesting-alias/</guid>
      <description>&lt;p&gt;For this time, I will just give you a link to to bashrc file.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://hayne.net/MacDev/Bash/aliases.bash&#34;&gt;http://hayne.net/MacDev/Bash/aliases.bash&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Head over there and see some very interesting aliase’s.&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://bryanquigley.com/uncategorized/windows-cant-handle-the-hardware&#34;&gt;Bryan Quigley: Windows Cant Handle the Hardware&lt;/a&gt; (bryanquigley.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;https://github.com/regit/coccigrep&#34;&gt;semantic grep&lt;/a&gt; (github.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://macstarter.com/2011/06/30/aliases-and-shortcuts/&#34;&gt;Aliases and shortcuts&lt;/a&gt; (macstarter.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Empty a file</title>
      <link>/2010/12/26/empty-file/</link>
      <pubDate>Sun, 26 Dec 2010 14:56:13 +0000</pubDate>
      
      <guid>/2010/12/26/empty-file/</guid>
      <description>&lt;div class=&#34;zemanta-img&#34; style=&#34;margin: 1em; display: block;&#34;&gt;
  &lt;div&gt;
    &lt;dl class=&#34;wp-caption alignright&#34; style=&#34;width: 310px;&#34;&gt;
      &lt;dt class=&#34;wp-caption-dt&#34;&gt;
        &lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Calculator.NET_Screenshot.png&#34;&gt;&lt;img title=&#34;Screenshot of Calculator.NET, a Free Open Sour...&#34; src=&#34;http://upload.wikimedia.org/wikipedia/commons/thumb/b/be/Calculator.NET_Screenshot.png/300px-Calculator.NET_Screenshot.png&#34; alt=&#34;Screenshot of Calculator.NET, a Free Open Sour...&#34; width=&#34;300&#34; height=&#34;188&#34; /&gt;&lt;/a&gt;
      &lt;/dt&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;dd class=&amp;quot;wp-caption-dd zemanta-img-attribution&amp;quot; style=&amp;quot;font-size: 0.8em;&amp;quot;&amp;gt;
    Image via &amp;lt;a href=&amp;quot;http://commons.wikipedia.org/wiki/File:Calculator.NET_Screenshot.png&amp;quot;&amp;gt;Wikipedia&amp;lt;/a&amp;gt;
  &amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;This one is for those who know the “touch” command. Hope all of us do not follow a  command just because it is on one of the popular site without trying to understand the command and the output.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Take a screenshot of the window the user clicks on and name the file the same as the window title</title>
      <link>/2010/12/19/screenshot-window-user-clicks-file-window-title/</link>
      <pubDate>Sun, 19 Dec 2010 14:45:06 +0000</pubDate>
      
      <guid>/2010/12/19/screenshot-window-user-clicks-file-window-title/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Take a screenshot of the window the user clicks on and name the file the same as the window title&lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      &amp;amp;nbsp;sleep 4; xwd &amp;gt;foo.xwd; mv foo.xwd &amp;quot;$(dd skip=100 if=foo.xwd bs=1 count=256 2&amp;gt;/dev/null | egrep -ao &#39;^[[:print:]]+&#39; | tr / :).xwd&amp;quot;
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;In general, this is actually not better than the “scrot -d4” command I’m listing it as an alternative to, so please don’t vote it down for that. I’m adding this command because xwd (X window dumper) comes with X11, so it is already installed on your machine, whereas scrot probably is not. I’ve found xwd handy on boxen that I don’t want to (or am not allowed to) install packages on.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>New feature in Gnome/Nautilus</title>
      <link>/2010/12/05/feature-gnomenautilus/</link>
      <pubDate>Sun, 05 Dec 2010 01:39:10 +0000</pubDate>
      
      <guid>/2010/12/05/feature-gnomenautilus/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;One of the things that I never realized that I am missing in Nautilus until they put the feature in was this. When a &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34;&gt;file&lt;/a&gt; is being copied and there is conflict, there should be option to rename the new file being copied. Also, if the file being copied is image then a small preview/thumbnail would be good.&lt;/p&gt;
&lt;p&gt;Yesterday while copying some &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34;&gt;files&lt;/a&gt;, suddenly I noticed that this feature is there now. Pretty useful feature to have. Here’s the screen-shot.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>function for copy files with progress bar (using pv – pipe viewer)</title>
      <link>/2010/11/11/function-copy-files-progress-bar-pv-pipe-viewer/</link>
      <pubDate>Thu, 11 Nov 2010 03:43:43 +0000</pubDate>
      
      <guid>/2010/11/11/function-copy-files-progress-bar-pv-pipe-viewer/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;function for copy &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34;&gt;files&lt;/a&gt; with &lt;a class=&#34;zem_slink&#34; title=&#34;Progress bar&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Progress_bar&#34;&gt;progress bar&lt;/a&gt; (using pv – pipe viewer)&lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      &amp;amp;nbsp;cp_p() { if [ `echo &amp;quot;$2&amp;quot; | grep &amp;quot;.*/$&amp;quot;` ]; then pv &amp;quot;$1&amp;quot; &amp;gt; &amp;quot;$2&amp;quot;&amp;quot;$1&amp;quot;; else pv &amp;quot;$1&amp;quot; &amp;gt; &amp;quot;$2&amp;quot;/&amp;quot;$1&amp;quot;; fi; }
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;dont have to type new file name (it copy file under same name) and dont have to use ‘/’ in the end of destination folder (but you can if u want, its &lt;a class=&#34;zem_slink&#34; title=&#34;Idiot proof&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Idiot_proof&#34;&gt;idiot proof&lt;/a&gt;)&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>tee to a file descriptor</title>
      <link>/2010/08/13/tee-to-a-file-descriptor/</link>
      <pubDate>Fri, 13 Aug 2010 03:22:44 +0000</pubDate>
      
      <guid>/2010/08/13/tee-to-a-file-descriptor/</guid>
      <description>&lt;p&gt;tee to a file descriptor&lt;/a&gt;&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;/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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ tee &amp;gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;cat &lt;span class=&#34;p&#34;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;#8211; &amp;gt;&amp;amp;2)&lt;/span&gt;&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;the tee command does fine with file names, but not so much with file descriptors, such as &amp;amp;2. This uses process redirection to tee to the specified descriptor.&lt;/p&gt;
&lt;p&gt;In the sample output, it&amp;rsquo;s being used to tee to stderr, which is connected with the terminal, and to wc -l, which is also outputting to the terminal. The result is the output of bash –version followed by the linecount&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>bash script to change the vim colorscheme from the list of locally available schemes</title>
      <link>/2010/06/25/bash-script-to-change-the-vim-colorscheme-from-the-list-of-locally-available-schemes/</link>
      <pubDate>Thu, 24 Jun 2010 20:51:35 +0000</pubDate>
      
      <guid>/2010/06/25/bash-script-to-change-the-vim-colorscheme-from-the-list-of-locally-available-schemes/</guid>
      <description>&lt;div class=\&#34;zemanta-img\&#34;&gt; 
&lt;div&gt;
  &lt;dl class=\&#34;wp-caption alignright\&#34;&gt; &lt;dt class=\&#34;wp-caption-dt\&#34;&gt;&lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;&lt;img title=\&#34;MacVim icon, glossy style\&#34; src=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Vim_gloss_128.png\&#34; alt=\&#34;MacVim icon, glossy style\&#34; /&gt;&lt;/a&gt;&lt;/dt&gt; &lt;dd class=\&#34;wp-caption-dd zemanta-img-attribution\&#34;&gt;Image via &lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;Wikipedia&lt;/a&gt;&lt;/dd&gt; &lt;/dl&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Today I was just wondering how good it would be to have a script to change the &amp;lt;a class=&amp;quot;zem_slink freebase/en/vim&amp;quot; title=&amp;quot;Vim (text editor)&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.vim.org/&amp;quot;&amp;gt;vim&lt;/a&gt; colorscheme from the &amp;lt;a class=&amp;quot;zem_slink freebase/en/cmd_exe&amp;quot; title=&amp;quot;Command Prompt&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Command_Prompt&amp;quot;&amp;gt;command prompt&lt;/a&gt;. The plan for the script was simply to print the list of available schemes and then let the user select the actions from there on. So, here is the result:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Mirror or download a website with a tool much better than wget</title>
      <link>/2010/05/19/mirror-download-website-tool-wget/</link>
      <pubDate>Wed, 19 May 2010 16:38:39 +0000</pubDate>
      
      <guid>/2010/05/19/mirror-download-website-tool-wget/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;If you want to mirror a &amp;lt;a class=&amp;quot;zem_slink freebase/en/website&amp;quot; title=&amp;quot;Website&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Website&amp;quot;&amp;gt;website&lt;/a&gt;, the simplest tool I know if is &amp;lt;a class=&amp;quot;zem_slink freebase/en/wget&amp;quot; title=&amp;quot;Wget&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.gnu.org/software/wget/&amp;quot;&amp;gt;wget&lt;/a&gt;. Once you have used wget, you know the troubles associated with it. You also get added couple of files as search html files, which are useless and wastage of bandwidth for you as well as the &amp;lt;a class=&amp;quot;zem_slink freebase/en/web_server&amp;quot; title=&amp;quot;Web server&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Web_server&amp;quot;&amp;gt;webserver&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;lftp -e &amp;amp;#8221;mirror -c&amp;amp;#8221;  &lt;URL&gt;&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Downloading all related videos from youtube with youtube-dl</title>
      <link>/2010/05/16/downloading-related-videos-youtube-youtubedl/</link>
      <pubDate>Sun, 16 May 2010 15:53:16 +0000</pubDate>
      
      <guid>/2010/05/16/downloading-related-videos-youtube-youtubedl/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;How many time did you want to see all the videos (related) to the one you were watching on youtube but decided otherwise as the downloaded was not fast enough. Or has it happened to you that you wanted to &amp;lt;a class=&amp;quot;zem_slink freebase/en/uploading_and_downloading&amp;quot; title=&amp;quot;Uploading and downloading&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Uploading_and_downloading&amp;quot;&amp;gt;download&lt;/a&gt; all the related videos, in either case you can use the youtube-dl utility I blogged about some times back. First you need to get all the &amp;lt;a class=&amp;quot;zem_slink freebase/en/uniform_resource_locator&amp;quot; title=&amp;quot;Uniform Resource Locator&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Uniform_Resource_Locator&amp;quot;&amp;gt;URL&lt;/a&gt;&amp;amp;#8217;s in a &amp;lt;a class=&amp;quot;zem_slink freebase/en/text_file&amp;quot; title=&amp;quot;Text file&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Text_file&amp;quot;&amp;gt;text file&lt;/a&gt;, and the simplest way to do this is :&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>top - looks better and is more useful with a rc file...</title>
      <link>/2010/05/07/top-rc-file/</link>
      <pubDate>Fri, 07 May 2010 03:27:39 +0000</pubDate>
      
      <guid>/2010/05/07/top-rc-file/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;top is a very useful command to find out who is eating up the &amp;lt;a class=&amp;quot;zem_slink freebase/en/central_processing_unit&amp;quot; title=&amp;quot;Central processing unit&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Central_processing_unit&amp;quot;&amp;gt;CPU&lt;/a&gt; or the memory. But sometimes the plain and simple look simply would be boring so how about some fun. Copy the below code to file : ~/.toprc&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;RCfile for &amp;amp;#8221;top&amp;amp;#8221;&lt;br&gt;
Id:a, Mode_altscr=1, Mode_irixps=0, Delay_time=5.000, Curwin=0&lt;br&gt;
Def    fieldscur=mfcAbdEgHIursOpQTvyzWjKNLX&lt;br&gt;
winflags=32184, sortindx=10, maxtasks=0&lt;br&gt;
summclr=4, msgsclr=5, headclr=5, taskclr=4&lt;br&gt;
Job    fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX&lt;br&gt;
winflags=62777, sortindx=0, maxtasks=0&lt;br&gt;
summclr=6, msgsclr=6, headclr=7, taskclr=6&lt;br&gt;
Mem    fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX&lt;br&gt;
winflags=62777, sortindx=13, maxtasks=0&lt;br&gt;
summclr=5, msgsclr=5, headclr=4, taskclr=5&lt;br&gt;
Usr    fieldscur=ABDECGfhijlopqrstuvyzMKNWX&lt;br&gt;
winflags=62777, sortindx=4, maxtasks=0&lt;br&gt;
summclr=3, msgsclr=3, headclr=2, taskclr=3&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>bash script to change vim colorscheme based on the available themes</title>
      <link>/2010/04/11/bash-script-change-vim-colorscheme-based-themes/</link>
      <pubDate>Sun, 11 Apr 2010 09:11:41 +0000</pubDate>
      
      <guid>/2010/04/11/bash-script-change-vim-colorscheme-based-themes/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;&lt;div class=\&#34;zemanta-img\&#34;&gt; 
&lt;div&gt;
  &lt;dl class=\&#34;wp-caption alignright\&#34;&gt; &lt;dt class=\&#34;wp-caption-dt\&#34;&gt;&lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;&lt;img title=\&#34;MacVim icon, glossy style\&#34; src=\&#34;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/Vim_gloss_128.png\&#34; alt=\&#34;MacVim icon, glossy style\&#34; /&gt;&lt;/a&gt;&lt;/dt&gt; &lt;dd class=\&#34;wp-caption-dd zemanta-img-attribution\&#34;&gt;Image via &lt;a href=\&#34;http://commons.wikipedia.org/wiki/Image:Vim_gloss_128.png\&#34;&gt;Wikipedia&lt;/a&gt;&lt;/dd&gt; &lt;/dl&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;Here&amp;amp;#8217;s one script that you may find useful. A little variation or wrapper for this script can make your life colorful 🙂&lt;/p&gt;
&lt;p&gt;You can write a wrapper to this to take one of the inputs randomly and then use it in alias to start &amp;lt;a class=&amp;quot;zem_slink freebase/en/vim&amp;quot; title=&amp;quot;Vim (text editor)&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.vim.org/&amp;quot;&amp;gt;vim&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Linux find command – Find file and directories faster and easier</title>
      <link>/2010/03/16/linux-find-command-find-file-and-directories-faster-and-easier/</link>
      <pubDate>Tue, 16 Mar 2010 02:25:48 +0000</pubDate>
      
      <guid>/2010/03/16/linux-find-command-find-file-and-directories-faster-and-easier/</guid>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;tt&gt;This command is very powerfull when used with combination of &lt;a class=&#34;\&amp;quot;zem_slink&#34; title=&#34;\&amp;quot;Pipeline&#34; href=&#34;\&amp;quot;http://en.wikipedia.org/wiki/Pipeline_%28software%29\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34;&gt;filters and pipes&lt;/a&gt; and RE.&lt;/tt&gt;&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;I will give some example:&lt;/tt&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;tt&gt;find . -&lt;a class=&#34;zem_slink&#34; title=&#34;Type (Unix)&#34; href=&#34;http://en.wikipedia.org/wiki/Type_%28Unix%29&#34; rel=&#34;wikipedia&#34;&gt;type&lt;/a&gt; f &amp;ndash;&amp;raquo; List all &lt;a class=&#34;\&amp;quot;zem_slink&#34; title=&#34;\&amp;quot;Computer&#34; href=&#34;\&amp;quot;http://en.wikipedia.org/wiki/Computer_file\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34;&gt;files&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;find . -type f -exec &lt;a class=&#34;\&amp;quot;zem_slink&#34; title=&#34;\&amp;quot;Rm&#34; href=&#34;\&amp;quot;http://en.wikipedia.org/wiki/Rm_%28Unix%29\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34;&gt;rm&lt;/a&gt; {} &amp;lt;a class=&amp;ldquo;zem_slink&amp;rdquo; title=&amp;ldquo;Path (computing)&amp;rdquo; href=&amp;ldquo;&lt;a href=&#34;http://en.wikipedia.org/wiki/Path_%28computing%29%22&#34;&gt;http://en.wikipedia.org/wiki/Path_%28computing%29&amp;quot;&lt;/a&gt; rel=&amp;ldquo;wikipedia&amp;rdquo;&amp;gt;\&lt;/a&gt;; &amp;ndash;&amp;raquo; Delete all &lt;a class=&#34;zem_slink&#34; title=&#34;Computer file&#34; href=&#34;http://en.wikipedia.org/wiki/Computer_file&#34; rel=&#34;wikipedia&#34;&gt;files&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;find . -type d -exec &lt;a class=&#34;zem_slink&#34; title=&#34;Rm (Unix)&#34; href=&#34;http://en.wikipedia.org/wiki/Rm_%28Unix%29&#34; rel=&#34;wikipedia&#34;&gt;rm&lt;/a&gt; {} \; &amp;ndash;&amp;raquo; Will through some common errors 🙂&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;find . -name &amp;quot;&lt;em&gt;name&lt;/em&gt;&amp;quot;  &amp;ndash;&amp;gt; find files containing name in the &lt;a class=&#34;\&amp;quot;zem_slink&#34; title=&#34;\&amp;quot;Filename\&amp;quot;&#34; href=&#34;\&amp;quot;http://en.wikipedia.org/wiki/Filename\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34;&gt;filename&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;find . -&lt;a class=&#34;zem_slink&#34; title=&#34;Stat (Unix)&#34; href=&#34;http://en.wikipedia.org/wiki/Stat_%28Unix%29&#34; rel=&#34;wikipedia&#34;&gt;atime&lt;/a&gt; 12 &amp;ndash;&amp;gt; Find files accessed 12 days ago&lt;/tt&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>prepend to a file with sponge from moreutils</title>
      <link>/2010/03/16/prepend-to-a-file-with-sponge-from-moreutils/</link>
      <pubDate>Tue, 16 Mar 2010 02:25:42 +0000</pubDate>
      
      <guid>/2010/03/16/prepend-to-a-file-with-sponge-from-moreutils/</guid>
      <description>&lt;p&gt;&amp;lt;a href=&amp;quot;http://bashcurescancer.com/prepend-to-a-file-with-sponge-from-moreutils.html&amp;quot;&amp;gt;A few weeks I wrote about a tool, which helps you easily prepend to a file. I submitted prepend to moreutils and Joey was kind enough to point out this could be done with `sponge&amp;amp;#8217;.? sponge reads standard input and when done, writes it to a file:&lt;br&gt;
Probably the most general …&lt;/a&gt;&amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot;&amp;gt;Related articles by Zemanta&lt;/h6&gt; &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://helpdeskgeek.com/linux-tips/crontab-howto-tutorial-syntax/&amp;quot;&amp;gt;Automating Tasks in Linux Using Crontab&lt;/a&gt; (helpdeskgeek.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.slideshare.net/progrium/sxsw-evented-web&amp;quot;&amp;gt;How WebHooks Will Make Us All Programmers&lt;/a&gt; (slideshare.net)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://almirkaric.com/2010/01/07/debugging-python-multiprocessing/&amp;quot;&amp;gt;Debugging python (multi)processing&lt;/a&gt; (almirkaric.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.slideshare.net/royzimmer/you-can-do-it-start-using-perl-to-handle-your-voyager-needs&amp;quot;&amp;gt;You Can Do It! Start Using Perl to Handle Your Voyager Needs&lt;/a&gt; (slideshare.net)&lt;/li&gt; &lt;/ul&gt; &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; title=&amp;quot;Reblog this post [with Zemanta]&amp;quot; href=&amp;quot;http://reblog.zemanta.com/zemified/b2b2afad-1679-46ab-831c-90ae0cc4d30f/&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b14.png&amp;quot; alt=&amp;quot;Reblog this post [with Zemanta]&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related more-info pretty-attribution paragraph-reblog&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Perl script to create csv files with a pattern – Generic script.</title>
      <link>/2010/01/19/perl-script-to-create-csv-files-with-a-pattern-generic-script/</link>
      <pubDate>Tue, 19 Jan 2010 03:11:16 +0000</pubDate>
      
      <guid>/2010/01/19/perl-script-to-create-csv-files-with-a-pattern-generic-script/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;I was having a really bad day and needed a quick solution to create some csv files. And this I needed to do for multiple data kinds and patterns, so I created this small script to do the job for me…&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#Number of rows required in the output.&lt;/p&gt;
&lt;p&gt;$rows = 100;&lt;/p&gt;
&lt;p&gt;#The config and the output file&lt;/p&gt;
&lt;p&gt;open (CF_FILE, &amp;amp;#8221;&amp;lt;Config.test&amp;amp;#8221;);&lt;br&gt;
open (OUT_FILE, &amp;amp;#8221;&amp;gt;test.csv&amp;amp;#8221;);&lt;/p&gt;
&lt;p&gt;#—————————————————————————&lt;br&gt;
# No need to change anything below this.&lt;br&gt;
#—————————————————————————&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
