<?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>NerdyRoom™ &#187; DOS</title>
	<atom:link href="http://www.nrtm.de/index.php/category/dos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nrtm.de</link>
	<description>never read the manual</description>
	<lastBuildDate>Mon, 06 Feb 2012 21:02:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WinXP Epic Fail or how a penguin made my day</title>
		<link>http://www.nrtm.de/index.php/2011/06/12/winxp-epic-fail-or-how-a-penguin-made-my-day/</link>
		<comments>http://www.nrtm.de/index.php/2011/06/12/winxp-epic-fail-or-how-a-penguin-made-my-day/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 13:01:20 +0000</pubDate>
		<dc:creator>stefan</dc:creator>
				<category><![CDATA[DOS]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nerdcore]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[wtf]]></category>
		<category><![CDATA[hal.dll]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=3438</guid>
		<description><![CDATA[Well, all work and no fun make Jack a dull boy. That&#8217;s why at my PC at home, there&#8217;s a Windows XP installed besides my usual Linux installation. With it I do the in my opinion only thing Windows is better in than Linux, gaming. One can have other opinions, but for now that&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p>Well, all work and no fun make Jack a dull boy. That&#8217;s why at my PC at home, there&#8217;s a Windows XP installed besides my usual Linux installation. With it I do the in my opinion only thing Windows is better in than Linux, gaming. One can have other opinions, but for now that&#8217;s not the point.</p>
<p>In my experience a Windows system needs just a little bit of time to get slower and slower and start behaving crazy which leads to getting unusable and to a reinstallation. I had to say I was a little bit proud of this special installation, because I had no real difficulties within the last 6 month. Maybe it is because I just installed a Firewall, a Software to detect viruses and the single game I usually play &#8230; or it just waited until I was unsuspecting. But today it greets me with a nice black screen and the following white letters on it:</p>
<pre>Windows could not start because the following file is missing or corrupt:

&lt;Windows-root&gt;system32\hal.dll.
Please re-install a copy of the above file.</pre>
<p>Ok I do not exactly know what this file does (Managing Hardware access if I have to guess), but I&#8217;m sure I never touched <em>her</em>, seriously!</p>
<p>After th obligatory reboot a little bit of panic, anger and sadness followed. In the next second I started searching the web for a solution, or to get a copy of this hal.dll file. I read a bit in crappy forums and decided to find a file download with the dull feeling in my mind, that it can&#8217;t be a good idea to get a system-essential file from a source I don&#8217;t trust. In this moment a little penguin in my mind whispered <em>&#8220;wine&#8221;</em>&#8230; First I was confused, I more like beer but then I understand &#8211; <a title="wine" href="http://www.winehq.org/" target="_blank">WINE</a>!</p>
<p>Excited typing began, for the hunt of hal.dll in my wine source directory. I smiled when I found it at the expected position.<em> &#8220;Too easy to work!&#8221;</em>, I thought&#8230; Next I mounted my NTFS partition and copied the file to where it whould be if my stupid Win*** didn&#8217;t lost it. Unmount, Reboot and crosses fingers followed. And what should I say? SUCCESS!</p>
<p>At the end I need to say, it is a nice job for (not) an emulator to fix the stuff it (not) emulates! <img src='http://www.nrtm.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=3438&amp;md5=9231daef9702a3cb8438d090059d6f23" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2011/06/12/winxp-epic-fail-or-how-a-penguin-made-my-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=3438&amp;md5=9231daef9702a3cb8438d090059d6f23" type="text/html" />
	</item>
		<item>
		<title>DOS #2: Vim Tips</title>
		<link>http://www.nrtm.de/index.php/2009/06/10/dos-2-vim-tips/</link>
		<comments>http://www.nrtm.de/index.php/2009/06/10/dos-2-vim-tips/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 22:24:25 +0000</pubDate>
		<dc:creator>ronny</dc:creator>
				<category><![CDATA[DOS]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=1096</guid>
		<description><![CDATA[I have been using vim for development for over half a year now and want to share my setup and some commands I use on a daily base. To understand the article you need basic knowledge of how vim works. Overview: Name: Vim (Vi IMproved) Version: 7.2 URL: http://www.vim.org/ How to set default options: In [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">              
div.round {                          
    border-style: hidden;            
    border-width: 1px;               
    -moz-border-radius: 4px;         
    background-color: #e3e3e3;       
    padding: 4px;                    
}                                    
div.inside {                         
    padding-left: 30px;              
}                                    
table.overview {                     
    border-spacing: 0px;             
    border-style: hidden;            
}                                    
</style>
<p>I have been using vim for development for over half a year now and want to share my setup and some commands I use on a daily base. To understand the article you need basic knowledge of how vim works.                                                                             </p>
<div class="round">
<h3>Overview:</h3>
</div>
<div class="inside">
<table class="overview">
<tr>
<td>Name:</td>
<td>Vim (Vi IMproved)</td>
</tr>
<tr>
<td>Version:</td>
<td>7.2</td>
</tr>
<tr>
<td>URL:</td>
<td><a href="http://www.vim.org/">http://www.vim.org/</a></td>
</tr>
</table>
</div>
<p />
<div class="round">
<h3>How to set default options:</h3>
</div>
<div class="inside">
    In the <code>.vimrc</code> file, default options can be set. This file is located in your home directory. e.g. <code>./home/user/.vimrc</code>. There also is a global vimrc: <code>/etc/vim/vimrc</code>.
</div>
<p />
<div class="round">
<h3>Default Option Set:</h3>
</div>
<div class="inside">
<ul>
<li>Abandon vi compatibility. Needed to get all the extras of vim.
<pre>set nocompatible</pre>
</li>
<li>Backspace is allowed to remove indentions, end of lines and starts.
<pre>set backspace=indent,eol,start</pre>
</li>
<li>Do not create backup files.
<pre>set nobackup</pre>
</li>
<li>Set the length of the history (accessed through arrow up and down, while typing a :-, /- or ?-command) to 400 entries.
<pre>set history=400</pre>
</li>
<li>Show the current cursor position in the status line.
<pre>set ruler</pre>
</li>
<li>Display incomplete commands in the status line.
<pre>set showcmd</pre>
</li>
<li>Display the current mode in the status line.
<pre>set showmode</pre>
</li>
<li>Visually jump to the matching opening bracket for a short time, when typing a closing bracket.
<pre>set showmatch</pre>
</li>
<li>Show intermediate search results, while typing a search term.
<pre>set incsearch</pre>
</li>
<li>Do not insert two spaces after a &#8216;.&#8217;, &#8216;?&#8217; and &#8216;!&#8217; with a join command.
<pre>set nojoinspaces</pre>
</li>
<li>Disallow all keys to move to the next line. See :help whichwrap for more information.
<pre>set whichwrap=""</pre>
</li>
<li>Use filetype-specific indention, if possible.
<pre>filetype plugin indent on</pre>
</li>
<li>Enable syntax highlighting. Vim is able to highlight more than 200 distinct filetypes.
<pre>syntax enable</pre>
</li>
<li>Highlight all search hits. Use <code>:nohls</code> to turn it off.
<pre>set hlsearch</pre>
</li>
<li>Indent intelligently, automatically &#8211; My favourite indention mode.
<pre>set autoindent</pre>
</li>
<li>Replace tabs with spaces.
<pre>set expandtab</pre>
</li>
<li>How many spaces is a tab?
<pre>set tabstop=4</pre>
</li>
<li>How many spaces is an indention.
<pre>set shiftwidth=4</pre>
</li>
<li>Show line numbers.
<pre>set number</pre>
</li>
<li>Always use the default color scheme.
<pre>colorscheme default</pre>
</li>
<li>Highlight trailing spaces and @todos.
<pre>
match Todo /\s\+$/
match Todo /@todo/
</pre>
</li>
<li>Jump to end of the file, if opening a log file.
<pre>
:augroup somethinguseful
:au BufReadPost *.log normal G
:augroup END
</pre>
</li>
</ul>
</div>
<p />
<div class="round">
<h3>Copy&#8217;n'Paste:</h3>
</div>
<div class="inside">
<pre>
set nocompatible                    " deactivated compatibility to vi
set backspace=indent,eol,start      " what is the backspace allowed to delete
set nobackup                        " do not keep a backup files, use versions instead
set history=400                     " keep 400 lines of command line history
set ruler                           " show the cursor position all the time
set showcmd                         " display incomplete commands
set showmode                        " show in which mode we are in the status line
set showmatch                       " visually jumps the matching bracket when typing closing brackets
set incsearch                       " do incremental searching
set nojoinspaces                    " do not insert a space, when joining lines
set whichwrap=""                    " do not jump to the next line when deleting
filetype plugin indent on           " if there is an indention plugin matching the filetype, use it
syntax enable                       " syntax highlighting on
set hlsearch                        " highlight all search hits
set autoindent                      " indent intelligently automatically
set expandtab                       " expand tabs to spaces
set tabstop=4                       " how many spaces make one tab
set shiftwidth=4                    " how many spaces to indent, using < and >
set number                          " show line numbers
colorscheme default                                                                                   

match Todo /\s\+$/                  " highlight trailing white spaces
match Todo /@todo/                  " highlight doxygen todos        

:augroup somethinguseful
:au BufReadPost *.log normal G " jump to the end of the file if it is a logfile
:augroup END
</pre>
</div>
<p />
<div class="round">
<h3>Commands:</h3>
</div>
<div class="inside">
Since vim has a multitude of commands, having a cheat sheet is a must. Here is my favorite: <a href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html">Graphical Cheat Sheet</a>.<br />
Disclaimer: The following commands are likely to be more powerful than shown here.<br />
This is only a narrow view on which commands and command combinations I use every day.                                                    </p>
<h2>Legend</h2>
<ul>
<li><b><code>[]</code></b> : optional argument</li>
<li><b><code>&lt;&gt;</code></b>  : mandatory argument</li>
<li><b><code>count</code></b>  : any number</li>
<li><b><code>movement</code></b> : any movement command. e.g.: w,b,e,ge,arrows,^,$,&#8230;</li>
<li><b><code>{v}</code></b> : being in visual mode</li>
<li><b><code>{i}</code></b> : being in insertion mode</li>
</ul>
<h2>Movement</h2>
<ul>
<li><b><code>w, b</code></b> : Move to the first character of the next/previous word.</li>
<li><b><code>e, ge</code></b> : Move to the last character of the next/previous word.</li>
<li><b><code>/&lt;find&gt;/, ?&lt;find&gt;?</code></b> : Search the term &lt;find&gt; forward/backward.</li>
<li><b><code>//, ??</code></b> : Repeat the last search.</li>
<li><b><code>*, #</code></b> : Search the word under the cursor forward/backward.</li>
<li><b><code>n, N</code></b> : Jump to the first letter of the next hit. I often use this in conjunction with the . command (The dot will be explained later on.)</li>
<li><b><code>:[no]hls</code></b> : Switch off/on the highlight for the previous search. Use this when you are done with your search to not get distracted by the highlight.</li>
<li><b><code>%</code></b> : Jump between matching starting and ending bracket.</li>
<li><b><code>^</code></b> : Jump to the first non-blank character of this line.</li>
<li><b><code>[count]G</code></b> : Jump to line [count]. Jump to the start of the file if [count] is omitted.</li>
<li><b><code>gg</code></b> : Jump to the end of the file.</li>
</ul>
<h2>Editing</h2>
<ul>
<li><b><code>i,a</code></b> : Switch to insertion mode before/after the current position.</li>
<li><b><code>I,A</code></b> : Switch to insertion mode at the begin/end of the line.</li>
<li><b><code>[count]r&lt;replacementcharacter&gt;</code></b> : Replace the [count] next characters with [count] &lt;replacementcharacter&gt;s starting at the current cursor position.</li>
<li><b><code>R</code></b> : Switch to replacement mode.</li>
<li><b><code>c[count]&lt;movement&gt;</code></b> : Delete the next [count] &lt;movement&gt;s and switch to insertion mode. I very often use <code>cw</code>.</li>
<li><b><code>cc</code></b> : Change the whole line and preserve the indention.</li>
<li><b><code>d[count]&lt;movement&gt;</code></b> : Delete the next [count] &lt;movement&gt;s. I very often use <code>dw</code>.</li>
<li><b><code>dd</code></b> : Remove the current line.</li>
<li><b><code>J</code></b> : Join the current line with next.</li>
<li><b><code>:0,$ s/&lt;find&gt;/&lt;replace&gt;/g</code></b> : starting from line 0, ranging to the last line: Replace all appearances of &lt;find&gt; with &lt;replace&gt;.</li>
<li><b><code>.</code></b> : Repeat the last insertion command. This is a very powerful tool, when you have to change something similarly in multiple places!</li>
</ul>
<h2>Formatting</h2>
<ul>
<li><b><code>[linecount]&gt;&gt;, [linecount]&lt;&lt;</code></b> : Indent the next [linecount] lines, starting with the current.</li>
<li><b><code>{v} [indentcount]&gt;, [indentcount]&lt;</code></b> : Indent the selected lines by [indentcount] indents. </li>
<li><b><code>{v} =</code></b> : Automatically indent the selected lines according to the filetype&#8217;s rules.</li>
</ul>
<h2>Copy&#8217;n'Paste</h2>
<p>Vim has an automatically changing clipboard. It changes on every deletion/change of anything. E.g.: d,x,c,s,&#8230;</p>
<ul>
<li><b><code>y[count]&lt;movement&gt;</code></b> : yank/copy the next [count] &lt;movements&gt;. I very often use y[count]w to copy whole words.</li>
<li><b><code>yy</code></b> : Yank the current line.</li>
<li><b><code>p, P</code></b> : Paste after/before the current position.</li>
<li><b><code>{i} Alt+p</code></b> : Paste before the current position and leave insertion mode.</li>
</ul>
<h2>Tabbing</h2>
<ul>
<li><b><code>vim -p [files]</code></b> : Open vim opening one tab for each file specified.</li>
<li><b><code>:tabnew [file]</code></b> : Open a new tab, loading file [file].</li>
<li><b><code>:tabdo &lt;command&gt;</code></b> : Execute command &lt;command&gt; in each tab separately. </li>
<li><b><code>:tabmove [count]</code></b> : Move this tab to position [count] or to the last position if no [count] is specified.</li>
<li><b><code>Ctrl+Page Up, Ctrl+Page Down</code></b> : Switch between tabs.</li>
</ul>
<h2>Visual Mode</h2>
<ul>
<li><b><code>v</code></b> : Switch to visual mode.</li>
<li><b><code>V</code></b> : Switch to visual mode, selecting whole lines.</li>
<li><b><code>Ctrl+v</code></b> : Switch to visual mode, selecting whole blocks. For example to comment out a block in c++, you just need: Ctr+v (select some lines vertically) I // Esc Esc. This puts // in each of the selected lines at the current column.</li>
<li><b><code>gv</code></b> : Restore the last selection.</li>
</ul>
<h2>Miscellaneous</h2>
<ul>
<li><b><code>u, Ctrl+r</code></b> : Undo, Redo</li>
<li><b><code>Ctrl+p, Ctrl+n</code></b> : Word completion searching forward/backward. This command also searches through included header files in c/c++.</li>
<li><b><code>:mks[!] &lt;file&gt;</code></b> : Save the current session to file &lt;file&gt;.</li>
<li><b><code>vim -S &lt;sessionfile&gt;</code></b> : Start vim using session &lt;sessionfile&gt;.</li>
<li><b><code>:set [no]paste</code></b> : Switch on/off auto indention. Use this when pasting already indented text into vim.</li>
</ul>
</div>
<p />
<p>This is probably too much to remember at once, so I suggest you have a look at this once in a while and try to apply one feature at a time. If you got used to it, move on to next.<br />
Happy Coding!</p>
<p><meta name="author" content="Ronny Brendel" /><br />
<meta name="keywords" contenxt="programming,vi,vim,vimrc,IDE,development,c,c++,best-practice" /></p>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=1096&amp;md5=3f3adfa00c8d96409c607cd32e20ee0a" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2009/06/10/dos-2-vim-tips/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=1096&amp;md5=3f3adfa00c8d96409c607cd32e20ee0a" type="text/html" />
	</item>
		<item>
		<title>DOS &#8211; The Default Option Set Series: Front Page</title>
		<link>http://www.nrtm.de/index.php/2009/05/28/dos-the-default-option-set-series-front-page/</link>
		<comments>http://www.nrtm.de/index.php/2009/05/28/dos-the-default-option-set-series-front-page/#comments</comments>
		<pubDate>Thu, 28 May 2009 07:32:21 +0000</pubDate>
		<dc:creator>bert</dc:creator>
				<category><![CDATA[DOS]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=1163</guid>
		<description><![CDATA[GNU grep Vim Tips]]></description>
			<content:encoded><![CDATA[<ol>
<li><a href="http://www.nrtm.de/index.php/2009/05/27/dos-the-default-options-set-series-part-1-gnu-grep/">GNU grep</a></li>
<li><a href="http://www.nrtm.de/index.php/2009/06/10/dos-2-vim-tips/">Vim Tips</a></li>
</ol>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=1163&amp;md5=1980fd4b1a2701388589545373e8e627" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2009/05/28/dos-the-default-option-set-series-front-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=1163&amp;md5=1980fd4b1a2701388589545373e8e627" type="text/html" />
	</item>
		<item>
		<title>DOS &#8211; The Default Option Set Series #1: GNU grep</title>
		<link>http://www.nrtm.de/index.php/2009/05/27/dos-the-default-options-set-series-part-1-gnu-grep/</link>
		<comments>http://www.nrtm.de/index.php/2009/05/27/dos-the-default-options-set-series-part-1-gnu-grep/#comments</comments>
		<pubDate>Wed, 27 May 2009 12:32:17 +0000</pubDate>
		<dc:creator>bert</dc:creator>
				<category><![CDATA[bashism]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.nrtm.de/?p=1085</guid>
		<description><![CDATA[With this post I will start an article series about default options for popular shell tools. And I would like to invite all of you to participate in this process to find a profound default option set for these tools. I will provide my current DOS as a discussion base and extend these by user [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
div.round {
    border-style: hidden;
    border-width: 1px;
    -moz-border-radius: 4px;
    background-color: #e3e3e3;
    padding: 4px;
}
div.inside {
    padding-left: 30px;
}
table.overview {
    border-spacing: 0px;
    border-style: hidden;
}
</style>
<p>With this post I will start an article series about default options for popular shell tools. And I would like to invite all of you to participate in this process to find a profound default option set for these tools. I will provide my current DOS as a discussion base and extend these by user comments.</p>
<p>In this first DOS its all about <code>GNU grep</code>.</p>
<div class="round">
<h3>Overview:</h3>
</div>
<div class="inside">
  Some fundamental information about the considered tool.</p>
<table class="overview">
<tr>
<td>Name:</td>
<td>GNU grep</td>
</tr>
<tr>
<td>Version:</td>
<td>2.5.3</td>
</tr>
<tr>
<td>URL:</td>
<td><a href="http://www.gnu.org/software/grep/">http://www.gnu.org/software/grep/</a></td>
</tr>
</table>
</div>
<p />
<div class="round">
<h3>How to set default options:</h3>
</div>
<div class="inside">
  This section will describe how to set the Default Option Set. For <code>grep</code> its the environmental variable <code>GREP_OPTIONS</code>.
</div>
<p />
<div class="round">
<h3>Default Option Set:</h3>
</div>
<div class="inside">
<p>In this section comes a descriptive list of the options.</p>
<ul>
<li>ignore binary files

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--binary-files</span>=without-match</pre></div></div>

</li>
<li>use colored output in terminals

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--color</span>=auto</pre></div></div>

</li>
<li>ignore special files like fifos, char and block devices

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--devices</span>=skip</pre></div></div>

</li>
<li>exclude patch *.rej and *.orig files

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude</span>=<span style="color: #ff0000;">'*.rej'</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude</span>=<span style="color: #ff0000;">'*.orig'</span></pre></div></div>

</li>
<li>exclude common scm directories

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=.git</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=.svn</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=CVS</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=patches</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=.pc</pre></div></div>

</li>
<li>exclude build directories

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=.libs</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">--exclude-dir</span>=.deps</pre></div></div>

</li>
</ul>
</div>
<p />
<div class="round">
<h3>Copy&#8217;n'Paste:</h3>
</div>
<div class="inside">
  And here is a ready-to-use version of the option set.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GREP_OPTIONS</span>=<span style="color: #ff0000;">&quot;--binary-files=without-match <span style="color: #000099; font-weight: bold;">\
</span>--color=auto <span style="color: #000099; font-weight: bold;">\
</span>--devices=skip <span style="color: #000099; font-weight: bold;">\
</span>--exclude='*.rej' <span style="color: #000099; font-weight: bold;">\
</span>--exclude='*.orig' <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=.git <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=.svn <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=CVS <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=patches <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=.pc <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=.libs <span style="color: #000099; font-weight: bold;">\
</span>--exclude-dir=.deps&quot;</span></pre></div></div>

</div>
 <p><a href="http://www.nrtm.de/?flattrss_redirect&amp;id=1085&amp;md5=6ec5a9b4dbb91d136cfbb708c92da9b5" title="Flattr" target="_blank"><img src="https://www.nrtm.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.nrtm.de/index.php/2009/05/27/dos-the-default-options-set-series-part-1-gnu-grep/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="http://www.nrtm.de/?flattrss_redirect&amp;id=1085&amp;md5=6ec5a9b4dbb91d136cfbb708c92da9b5" type="text/html" />
	</item>
	</channel>
</rss>

