<?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>Tech.It.2.Me-&#62;{By.Anton.Perez} &#187; Scripting</title>
	<atom:link href="http://antonperez.com/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://antonperez.com</link>
	<description>Technical satisfaction guaranteed...</description>
	<lastBuildDate>Fri, 28 Oct 2011 23:48:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PowerShell: Deleting entire lines in a text file based on a partial string match</title>
		<link>http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/</link>
		<comments>http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 00:24:11 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/</guid>
		<description><![CDATA[PS C:\workspace&#62; (gc “fileToParse.txt”) -notmatch &#34;&#60;criteria&#62;&#34; &#124; out-file &#34;resultFile.txt&#34; Note: &#60;Criteria&#62;, for example, “not&#34;.]]></description>
			<content:encoded><![CDATA[<p>PS C:\workspace&gt; (gc “fileToParse.txt”) -notmatch &quot;&lt;<em>criteria&gt;</em>&quot; | out-file    <br />&quot;resultFile.txt&quot;</p>
<p>Note: &lt;Criteria&gt;, for example, “not&quot;.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell: Rename file to lowercase</title>
		<link>http://antonperez.com/2011/06/15/powershell-rename-file-to-lowercase/</link>
		<comments>http://antonperez.com/2011/06/15/powershell-rename-file-to-lowercase/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 23:14:57 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/2011/06/15/powershell-rename-file-to-lowercase/</guid>
		<description><![CDATA[1. Open PowerShell 2. CD into directory to work on 3. Execute the following command: get-childitem * -recurse &#124; rename-item -newname { $_.name.ToLower() }]]></description>
			<content:encoded><![CDATA[<p>1. Open PowerShell</p>
<p>2. CD into directory to work on</p>
<p>3. Execute the following command:</p>
<p>get-childitem * -recurse | rename-item -newname { $_.name.ToLower() }</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2011/06/15/powershell-rename-file-to-lowercase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell: Rename file&#8217;s file extension</title>
		<link>http://antonperez.com/2011/06/15/powershell-rename-files-to-lowercase/</link>
		<comments>http://antonperez.com/2011/06/15/powershell-rename-files-to-lowercase/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 22:58:38 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/2011/06/15/powershell-rename-files-to-lowercase/</guid>
		<description><![CDATA[1. Open PowerShell 2. CD into directory to work on 3. Execute the following command: get-childitem * -recurse &#124; rename-item -newname { $_.name -replace &#34;.txt&#34;,&#34;.bcp&#34; }]]></description>
			<content:encoded><![CDATA[<p>1. Open PowerShell</p>
<p>2. CD into directory to work on</p>
<p>3. Execute the following command:</p>
<p>get-childitem * -recurse | rename-item -newname { $_.name -replace &quot;.txt&quot;,&quot;.bcp&quot; }</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2011/06/15/powershell-rename-files-to-lowercase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read a file with bash</title>
		<link>http://antonperez.com/2007/08/16/read-a-file-with-bash/</link>
		<comments>http://antonperez.com/2007/08/16/read-a-file-with-bash/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 01:10:01 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=198</guid>
		<description><![CDATA[I had to test our download servers at work right away, i.e., HTTP vs HTTPS, which required downloading a large number of files.&#160; A file list was given to me to work with, like so: /download/integrations/file1.exe/download/us/update/patch/file1.exe/download/us/cab/file1.exe So I&#160;decided to use the bash shell to read each line and run wget quick and dirty.&#160; Here&#8217;s the [...]]]></description>
			<content:encoded><![CDATA[<p>I had to test our download servers at work right away, i.e., HTTP vs HTTPS, which required downloading a large number of files.&nbsp; A file list was given to me to work with, like so:</p>
<p><font face="Courier New" color="#0000ff" size="2">/download/integrations/file1.exe<br />/download/us/update/patch/file1.exe<br />/download/us/cab/file1.exe</font></p>
<p>So I&nbsp;decided to use the bash shell to read each line and run <strong>wget </strong>quick and dirty.&nbsp; Here&#8217;s the script:</p>
<p><font face="Courier New" color="#0000ff" size="2">cat c:\\test.txt | while read line; do wget &#8220;</font><a href="http://files.stamps.com/"><font face="Courier New" color="#0000ff" size="2">URL/</font></a><font face="Courier New" color="#0000ff" size="2">${line}&#8221;; done</font>
<p>While&nbsp;running it I just used the Windows clock to get an approximate time difference.
<p>That&#8217;s it!&nbsp; Hope this helps.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/08/16/read-a-file-with-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VI global search and replace</title>
		<link>http://antonperez.com/2007/06/29/vi-global-search-and-replace/</link>
		<comments>http://antonperez.com/2007/06/29/vi-global-search-and-replace/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 21:52:19 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=174</guid>
		<description><![CDATA[In case you need to search and replace text globally within vi, here&#8217;s the command to do so: :1,$s/old/new vi is a free software screen-oriented text editor computer program written by Bill Joy in 1976 for an early BSD release. Peace!&#160; \m/]]></description>
			<content:encoded><![CDATA[<p>In case you need to search and replace text globally within <a title="vi" href="http://en.wikipedia.org/wiki/Vi" target="_blank">vi</a>, here&#8217;s the command to do so:</p>
<p><font face="Courier New" color="#0000ff" size="2">:1,$s/old/new</font></p>
<blockquote><p><b>vi</b> is a <a href="http://en.wikipedia.org/wiki/Free_software">free software</a> screen-oriented <a href="http://en.wikipedia.org/wiki/Text_editor">text editor</a> <a href="http://en.wikipedia.org/wiki/Computer_program">computer program</a> written by <a href="http://en.wikipedia.org/wiki/Bill_Joy">Bill Joy</a> in <a href="http://en.wikipedia.org/wiki/1976">1976</a> for an early <a href="http://en.wikipedia.org/wiki/Berkeley_Software_Distribution">BSD</a> release.</p>
</blockquote>
<p>Peace!&nbsp; \m/</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/06/29/vi-global-search-and-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

