 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to append .log extention after unzip a file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-append-log-extention-after-unzip-a-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-append-log-extention-after-unzip-a-file/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 13:12:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: twiki</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-append-log-extention-after-unzip-a-file/#comment-71943</link>
		<dc:creator>twiki</dc:creator>
		<pubDate>Thu, 24 Dec 2009 13:18:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-71943</guid>
		<description><![CDATA[I execute the script through CYGWIN]]></description>
		<content:encoded><![CDATA[<p>I execute the script through CYGWIN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-append-log-extention-after-unzip-a-file/#comment-71916</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 23 Dec 2009 18:41:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-71916</guid>
		<description><![CDATA[That&#039;s a Unix script.  How are you implementing that on windows ?]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s a Unix script.  How are you implementing that on windows ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: twiki</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-append-log-extention-after-unzip-a-file/#comment-71827</link>
		<dc:creator>twiki</dc:creator>
		<pubDate>Mon, 21 Dec 2009 16:48:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-71827</guid>
		<description><![CDATA[It comes  from a different server in the compressed format,my script then need to uncompress and process the file.

Implementing these lines on window .

elif [[ $i =~ $reg3 ]] ; then
 base=`basename $i .gz`	# get the basic file name
 dest=`dirname $i`		# get the  directory path
 (cd $dest; /usr/bin/gunzip $base) 	#execute the gz extract command
 if [ -f $dest&quot;/&quot;$base&quot;.log&quot; ]	# check if we got log file
 then
   olist=$olist&quot; &quot;$dest&quot;/&quot;$base&quot;.log&quot;  # add the file to the awk file list
 else
   echo $i&quot; did not produce a log file&quot; &gt;&gt;$LTEST
 fi]]></description>
		<content:encoded><![CDATA[<p>It comes  from a different server in the compressed format,my script then need to uncompress and process the file.</p>
<p>Implementing these lines on window .</p>
<p>elif [[ $i =~ $reg3 ]] ; then<br />
 base=`basename $i .gz`	# get the basic file name<br />
 dest=`dirname $i`		# get the  directory path<br />
 (cd $dest; /usr/bin/gunzip $base) 	#execute the gz extract command<br />
 if [ -f $dest"/"$base".log" ]	# check if we got log file<br />
 then<br />
   olist=$olist&#8221; &#8220;$dest&#8221;/&#8221;$base&#8221;.log&#8221;  # add the file to the awk file list<br />
 else<br />
   echo $i&#8221; did not produce a log file&#8221; &gt;&gt;$LTEST<br />
 fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-append-log-extention-after-unzip-a-file/#comment-71822</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 21 Dec 2009 15:51:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-71822</guid>
		<description><![CDATA[More details are needed.

What&#039;s the operating system ?
Is this a file you are compressing to distribute ?  if so, why don&#039;t you assign the &#039;log&#039; extension to it before compressing it ?

The more details you provide, the better chances to get useful responses.]]></description>
		<content:encoded><![CDATA[<p>More details are needed.</p>
<p>What&#8217;s the operating system ?<br />
Is this a file you are compressing to distribute ?  if so, why don&#8217;t you assign the &#8216;log&#8217; extension to it before compressing it ?</p>
<p>The more details you provide, the better chances to get useful responses.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.016 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 13:23:13 -->