<?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>CODIGG &#187; shell</title>
	<atom:link href="http://www.codigg.com/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigg.com</link>
	<description>关注互联网，关注云计算，关注生活</description>
	<lastBuildDate>Fri, 08 Jul 2011 02:48:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>下载远程ftp文件备份到本地的脚本</title>
		<link>http://www.codigg.com/2010/04/ftp-curl-backup-shell/</link>
		<comments>http://www.codigg.com/2010/04/ftp-curl-backup-shell/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 04:13:14 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[Linux/Server]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=664</guid>
		<description><![CDATA[同事让我帮忙写的脚本。

FTP上每天有更新文件，名字是用日期命名（如日志等），但ftp空间有限，因此要求每天将前一天的文件下载到本地，然后删除ftp上10天前的文件。

用之前的一篇文章加以拼装就能实现：使用curl操作ftp（上传、下载、删除等）

http://www.codigg.com/2009/12/shell-curl-ftp-upload-download-delete/

最后的脚本如下：

<span class="readmore"><a href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/" title="下载远程ftp文件备份到本地的脚本">阅读全文——共915字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2009/12/shell-curl-ftp-upload-download-delete/" title="shell命令：使用curl操作ftp（上传、下载、删除等） 2009.12.3">shell命令：使用curl操作ftp（上传、下载、删除等）</a>(115)</li>
<li><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法 2010.04.13">lighttpd不支持Expect: 100-continue的解决办法</a>(67)</li>
<li><a href="http://www.codigg.com/2010/04/suse-ftp-client-list-ls-failed/" title="SuSE FTP Client 连接服务器无法list的问题 2010.04.11">SuSE FTP Client 连接服务器无法list的问题</a>(20)</li>
<li><a href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/" title="几行代码搞定哄小孩问题(转载) 2010.03.22">几行代码搞定哄小孩问题(转载)</a>(4)</li>
<li><a href="http://www.codigg.com/2010/02/shell-date-script/" title="两个小脚本 2010.02.25">两个小脚本</a>(8)</li>
<li><a href="http://www.codigg.com/2009/09/php-curl-download-filename/" title="php curl下载文件时保存原文件名 2009.09.6">php curl下载文件时保存原文件名</a>(70)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://aggsbabyboots.weebly.com/" >uggs baby boots</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/#comment-214274" title="View the entire comment by uggs baby boots" >Uggboots are designed with sizing's that can healt...</a></li>
<li><a class="commentor" href="http://www.youtube.com/watch?v=d6lvKVH2ZnI" >facebook video download</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/#comment-213984" title="View the entire comment by facebook video download" >Can I just say what a relief to find people that t...</a></li>
<li><a class="commentor" href="http://www.scriptlerim.net" >liseli porno</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/#comment-213858" title="View the entire comment by liseli porno" >you might be truly range 1 admin your blogging is ...</a></li>
<li><a class="commentor" href="http://www.sohbetederiz.com/" >sohbet odaları</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/#comment-213816" title="View the entire comment by sohbet odaları" >oh my god wonderful put up admin will check your w...</a></li>
<li><a class="commentor" href="http://www.kolonkanseribelirtileri.com/" >kolon kanseri belirtileri</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/#comment-213112" title="View the entire comment by kolon kanseri belirtileri" >oh my god great put up admin will check your web s...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2010/04/ftp-curl-backup-shell/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>几行代码搞定哄小孩问题(转载)</title>
		<link>http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/</link>
		<comments>http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 11:47:11 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[Linux/Server]]></category>
		<category><![CDATA[baby]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=578</guid>
		<description><![CDATA[创新改变世界。



?View Code BASHwhile &#91;1 = 1&#93;

do

#弹出光驱

<span class="readmore"><a href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/" title="几行代码搞定哄小孩问题(转载)">阅读全文——共74字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/07/linux-google-earth-crash-ubuntu/" title="Linux下无法使用google earth 5.2的问题 2010.07.27">Linux下无法使用google earth 5.2的问题</a>(85)</li>
<li><a href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/" title="下载远程ftp文件备份到本地的脚本 2010.04.7">下载远程ftp文件备份到本地的脚本</a>(23)</li>
<li><a href="http://www.codigg.com/2010/03/linux-101-hacks-chinese-edition-tips/" title="《Linux 101 Hacks》中文版(Linux常用101个小技巧) 2010.03.29">《Linux 101 Hacks》中文版(Linux常用101个小技巧)</a>(12)</li>
<li><a href="http://www.codigg.com/2010/02/shell-date-script/" title="两个小脚本 2010.02.25">两个小脚本</a>(8)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://carlo.net.pl/oferta/wynajem-hal.html" >Hale Wystawowe</a> : <a class="comment_content" href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/#comment-212929" title="View the entire comment by Hale Wystawowe" >Very good written post. It will be beneficial to a...</a></li>
<li><a class="commentor" href="http://www.pomocdrogowagorzow.pl/wulkanizacja-24h-opony-wymiana-opon-gorzow/" >Transport Gorzow</a> : <a class="comment_content" href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/#comment-209649" title="View the entire comment by Transport Gorzow" >Hello There. I found your blog using msn. This is ...</a></li>
<li><a class="commentor" href="http://www.alegropl.com/" >Alegro Motoryzacja Samochody</a> : <a class="comment_content" href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/#comment-202529" title="View the entire comment by Alegro Motoryzacja Samochody" >Excellent blog here! Also your web site loads up v...</a></li>
<li><a class="commentor" href="http://libertyreserve-hyip.net" >liberty reserve</a> : <a class="comment_content" href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/#comment-176073" title="View the entire comment by liberty reserve" >å‡ è¡Œä»£ç æžå®šå“„å°å­©é—®é¢˜(è½¬è½½) - CODIGG...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>两个小脚本</title>
		<link>http://www.codigg.com/2010/02/shell-date-script/</link>
		<comments>http://www.codigg.com/2010/02/shell-date-script/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:20:02 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[Linux/Server]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=570</guid>
		<description><![CDATA[时间转换为秒



?View Code BASHdate -d'1970-01-01 00:01:01 UTC ' +%s



秒转换为时间

<span class="readmore"><a href="http://www.codigg.com/2010/02/shell-date-script/" title="两个小脚本">阅读全文——共143字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/" title="下载远程ftp文件备份到本地的脚本 2010.04.7">下载远程ftp文件备份到本地的脚本</a>(23)</li>
<li><a href="http://www.codigg.com/2010/03/linux-baby-rocker-bash-shell/" title="几行代码搞定哄小孩问题(转载) 2010.03.22">几行代码搞定哄小孩问题(转载)</a>(4)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://udlvids.com/how-to-download-video-from-youjizz/" >youjizz video</a> : <a class="comment_content" href="http://www.codigg.com/2010/02/shell-date-script/#comment-214264" title="View the entire comment by youjizz video" >Hey! I just would want to give a huge 'thumbs up'....</a></li>
<li><a class="commentor" href="http://www.innovativerenderings.com" >3d rendering</a> : <a class="comment_content" href="http://www.codigg.com/2010/02/shell-date-script/#comment-214211" title="View the entire comment by 3d rendering" >Trusting to make the right decisions can be tough....</a></li>
<li><a class="commentor" href="http://www.sohbetederiz.com/" >sohbet odaları</a> : <a class="comment_content" href="http://www.codigg.com/2010/02/shell-date-script/#comment-213804" title="View the entire comment by sohbet odaları" >I required for this web site article admin serious...</a></li>
<li><a class="commentor" href="http://www.blogtext.org/jeanboyle1128/article/1137619.html?Prendi+carta++Medical+Marijuana%7CWeed+For+Medical+Consumption%7D+per+ricevere+le+cure+Marijuana+Weed" >marijuna seeds</a> : <a class="comment_content" href="http://www.codigg.com/2010/02/shell-date-script/#comment-213470" title="View the entire comment by marijuna seeds" >Now there are a bit of engaging points throughout ...</a></li>
<li><a class="commentor" href="http://carlo.net.pl" >Koszt Budowy Hali Magazynowej</a> : <a class="comment_content" href="http://www.codigg.com/2010/02/shell-date-script/#comment-212910" title="View the entire comment by Koszt Budowy Hali Magazynowej" >I want to show my thanks to this writer for rescui...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2010/02/shell-date-script/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

