<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/1.5.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The joy of proper command line tools</title>
	<link>http://www.sturmnet.org/blog/archives/2008/02/18/the-joy-of-proper-command-line-tools/</link>
	<description>General musings and programming stuff</description>
	<pubDate>Thu, 07 Aug 2008 21:24:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.3</generator>

	<item>
		<title>by: Oliver Sturm</title>
		<link>http://www.sturmnet.org/blog/archives/2008/02/18/the-joy-of-proper-command-line-tools/#comment-135747</link>
		<pubDate>Tue, 19 Feb 2008 09:23:56 +0000</pubDate>
		<guid>http://www.sturmnet.org/blog/archives/2008/02/18/the-joy-of-proper-command-line-tools/#comment-135747</guid>
					<description>Sorry about that security code problem - I haven't written the applet myself :-)

What you mention (solving the problem from subversion) is certainly a good idea as well, but it seems a bit less general-purpose. I have the same issue when I have just created a sample project that I want to zip up, excluding the bin and obj folders.

Python? Yeah, sure... I wouldn't agree that it's *the* Swiss army knife of scripting - there have been enough other languages around that earned that title in their time, and Python in still young :-) In any case, I tend to go for what I perceive to be the simplest solution. If there are a few shell commands to automate, I find it easiest to hack them into a console, try them out and finally echo them into a shell script file, make some minor modifications for automation purposes and I'm done. Perl would be my next step in many cases, i.e. when there's just a little more processing to be done than can easily be handled with &amp;#34;grep&amp;#34;s. That's one problem I see with more advanced scripting languages: they often move away from the basics. Shell scripting is a totally natural extension of using shell commands, which I know how to use anyway. Perl is, in many areas, just one step away from that - slightly different syntax, slightly more advanced control structures and so on - of course there's a lot on top of that, but I'm still talking about the basic tasks. Python? I've used it for applications, never tried to use it as a glueing language. And there's a similar reason why I haven't tried using PowerShell for this kind of task yet... it sure has its own set of extremely powerful commands that can be glued together, but it'll probably be years for the casual user to come up to the same level of efficiency with these commands that he might have achieved with Unix tools being a sysadmin at university.</description>
		<content:encoded><![CDATA[	<p>Sorry about that security code problem - I haven&#8217;t written the applet myself <img src='http://www.sturmnet.org/blog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
	<p>What you mention (solving the problem from subversion) is certainly a good idea as well, but it seems a bit less general-purpose. I have the same issue when I have just created a sample project that I want to zip up, excluding the bin and obj folders.</p>
	<p>Python? Yeah, sure&#8230; I wouldn&#8217;t agree that it&#8217;s *the* Swiss army knife of scripting - there have been enough other languages around that earned that title in their time, and Python in still young <img src='http://www.sturmnet.org/blog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  In any case, I tend to go for what I perceive to be the simplest solution. If there are a few shell commands to automate, I find it easiest to hack them into a console, try them out and finally echo them into a shell script file, make some minor modifications for automation purposes and I&#8217;m done. Perl would be my next step in many cases, i.e. when there&#8217;s just a little more processing to be done than can easily be handled with &quot;grep&quot;s. That&#8217;s one problem I see with more advanced scripting languages: they often move away from the basics. Shell scripting is a totally natural extension of using shell commands, which I know how to use anyway. Perl is, in many areas, just one step away from that - slightly different syntax, slightly more advanced control structures and so on - of course there&#8217;s a lot on top of that, but I&#8217;m still talking about the basic tasks. Python? I&#8217;ve used it for applications, never tried to use it as a glueing language. And there&#8217;s a similar reason why I haven&#8217;t tried using PowerShell for this kind of task yet&#8230; it sure has its own set of extremely powerful commands that can be glued together, but it&#8217;ll probably be years for the casual user to come up to the same level of efficiency with these commands that he might have achieved with Unix tools being a sysadmin at university.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Lasse V. Karlsen</title>
		<link>http://www.sturmnet.org/blog/archives/2008/02/18/the-joy-of-proper-command-line-tools/#comment-135696</link>
		<pubDate>Mon, 18 Feb 2008 23:25:17 +0000</pubDate>
		<guid>http://www.sturmnet.org/blog/archives/2008/02/18/the-joy-of-proper-command-line-tools/#comment-135696</guid>
					<description>I posted a rather long little tidbit about using the subversion export command to produce a copy to a temporary directory, with only the files you've committed to the repository, but it got lost because your blog system loses the contents of the text field on a wrong security code (which also is a tip: try to avoid using O's in the security code, it's hard to tell uppercase from lowercase and I think that was my problem).

As for scripting, I use python, it's the swiss army knife of scripting.

Now, let's make a copy of this post before clicking submit.</description>
		<content:encoded><![CDATA[	<p>I posted a rather long little tidbit about using the subversion export command to produce a copy to a temporary directory, with only the files you&#8217;ve committed to the repository, but it got lost because your blog system loses the contents of the text field on a wrong security code (which also is a tip: try to avoid using O&#8217;s in the security code, it&#8217;s hard to tell uppercase from lowercase and I think that was my problem).</p>
	<p>As for scripting, I use python, it&#8217;s the swiss army knife of scripting.</p>
	<p>Now, let&#8217;s make a copy of this post before clicking submit.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
