<?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>Javatech &#187; Linux</title>
	<atom:link href="http://javatech.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://javatech.org</link>
	<description>The Bleeding Edge of Java Technology</description>
	<lastBuildDate>Mon, 16 Apr 2012 22:48:35 +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>Search and replace in multiple files</title>
		<link>http://javatech.org/2009/02/search-and-replace-in-multiple-files/</link>
		<comments>http://javatech.org/2009/02/search-and-replace-in-multiple-files/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 08:19:45 +0000</pubDate>
		<dc:creator>Darren Hicks</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://javatech.org/2009/02/25/search-and-replace-in-multiple-files/</guid>
		<description><![CDATA[If you ever need to search and replace strings throughout a bunch of files here&#8217;s a neat, somewhat alternative, way to do it. for file in `ls **/*.txt`;do perl -pi -w -e &#8216;s/SEARCH_FOR_THIS/REPLACE_WITH_THIS/g;&#8217; $file; done The nested &#8216;perl&#8217; command can work kind of like &#8216;sed&#8217;.  Here are what the arguments being passed in mean: -e [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever need to search and replace strings throughout a bunch of files here&#8217;s a neat, somewhat alternative, way to do it.</p>
<p>for file in `ls **/*.txt`;do perl -pi -w -e &#8216;s/SEARCH_FOR_THIS/REPLACE_WITH_THIS/g;&#8217; $file; done</p>
<p>The nested &#8216;perl&#8217; command can work kind of like &#8216;sed&#8217;.  Here are what the arguments being passed in mean:</p>
<p><code>-e means execute the following line of code.<br />
-i means edit in-place<br />
-w write warnings<br />
-p loop</code></p>
]]></content:encoded>
			<wfw:commentRss>http://javatech.org/2009/02/search-and-replace-in-multiple-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java 101: building your java classpath from a lib folder</title>
		<link>http://javatech.org/2009/02/java-101-building-your-java-classpath-from-a-lib-folder/</link>
		<comments>http://javatech.org/2009/02/java-101-building-your-java-classpath-from-a-lib-folder/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 05:43:37 +0000</pubDate>
		<dc:creator>Darren Hicks</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://javatech.org/2009/02/23/java-101-building-your-java-classpath-from-a-lib-folder/</guid>
		<description><![CDATA[OK &#8211; I admit it &#8211; my IDE and tools make me weak in many ways.  I was just having the hardest time getting my maven-managed project to run from a basic &#8220;java my.class.ClassName&#8221; command line invocation.  Why?  Because the freaking classpath is a million miles away from being a concern to me anymore.  So, [...]]]></description>
			<content:encoded><![CDATA[<p>OK &#8211; I admit it &#8211; my IDE and tools make me weak in many ways.  I was just having the hardest time getting my maven-managed project to run from a basic &#8220;java my.class.ClassName&#8221; command line invocation.  Why?  Because the freaking classpath is a million miles away from being a concern to me anymore.  So, jog the memory and immediately remember the -cp ( or -classpath ) option.  Also remember that I cannot specify a directory if I want to include all of the jars in that directory ( specifying a directory in the classpath will only load exploded .class files! ).</p>
<p>What I&#8217;ve got before me is a target/lib directory full of all of my maven2-managed dependencies.  I need to add each jar file explicitly into the classpath &#8211; barf!</p>
<p>Well, here&#8217;s a handy little shell script which will build that string for you:</p>
<p>for file in `ls lib`; do echo -n &#8216;lib/&#8217; &gt;&gt; classpath.txt;echo -n $file &gt;&gt; classpath.txt;echo -n &#8216;:&#8217; &gt;&gt; classpath.txt;done</p>
<p>Awesome &#8211; so just open the classpath.txt file and use that big &#8216;ol path however you want to.  Windows users would use a semi-colon instead of a colon above.  Also, remember that you need to specify the classpath option prior to the name of the class to run &#8211; otherwise the classpath is ignored ( as it is assumed to be an argument to the program and not a jvm option ).</p>
]]></content:encoded>
			<wfw:commentRss>http://javatech.org/2009/02/java-101-building-your-java-classpath-from-a-lib-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

