<?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, 13 Apr 2012 03:32:11 +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>Excel: Insert multiple rows every other row</title>
		<link>http://antonperez.com/2012/03/12/excel-insert-multiple-rows-every-other-row/</link>
		<comments>http://antonperez.com/2012/03/12/excel-insert-multiple-rows-every-other-row/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 00:19:24 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=1378</guid>
		<description><![CDATA[The key is to use a macro.&#160; To do so, hit Alt+F11, then create a new macro and add the code below. Once added, select the worksheet you’d like to process, change the “17” below (1 if to process all rows), then run it. That’s it. Sub Insert_Blank_Rows() &#160;&#160;&#160; Dim Last As Integer, oRow As [...]]]></description>
			<content:encoded><![CDATA[<p>The key is to use a macro.&#160; To do so, hit <strong>Alt</strong>+<strong>F11</strong>, then create a new macro and add the code below. Once added, select the worksheet you’d like to process, change the “17” below (1 if to process all rows), then run it.</p>
<p>That’s it.</p>
<p><font style="style" face="Courier New">Sub Insert_Blank_Rows()</font></p>
<p><font style="style" face="Courier New">&#160;&#160;&#160; Dim Last As Integer, oRow As Integer     <br />&#160;&#160;&#160; &#8216;Count and select rows to process      <br />&#160;&#160;&#160; Last = Range(&quot;A&quot; &amp; Rows.Count).End(xlUp).row      <br />&#160;&#160;&#160; <br />&#160;&#160;&#160; &#8217;17 is the last row to process (at the top)      <br />&#160;&#160;&#160; For oRow = Last To 17 Step -1      <br />&#160;&#160;&#160;&#160; If Not Cells(oRow, 1).Value = &quot;&quot; Then      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;Copy the line below to as many row insert you need      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;in this case, it was 3 row inserts      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Cells(oRow, 1).EntireRow.Insert      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Cells(oRow, 1).EntireRow.Insert      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Cells(oRow, 1).EntireRow.Insert      <br />&#160;&#160;&#160;&#160;&#160;&#160; End If      <br />&#160;&#160;&#160; Next oRow</font></p>
<p><font style="style" face="Courier New">End Sub</font>    <br />&#160;&#160;&#160; </p>
<p><font face="Courier New"></font></p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2012/03/12/excel-insert-multiple-rows-every-other-row/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

