<?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>softwarelivre.net &#187; bash</title> <atom:link href="http://softwarelivre.net/tag/bash/feed/" rel="self" type="application/rss+xml" /><link>http://softwarelivre.net</link> <description>Passo a passo rumo à liberdade!</description> <lastBuildDate>Fri, 27 Apr 2012 10:32:11 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Tudo o que você sempre quis saber sobre o Bash e ninguém nunca te respondeu</title><link>http://softwarelivre.net/2009/01/13/tudo-o-que-voce-sempre-quis-saber-sobre-o-bash-e-ninguem-nunca-te-respondeu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tudo-o-que-voce-sempre-quis-saber-sobre-o-bash-e-ninguem-nunca-te-respondeu</link> <comments>http://softwarelivre.net/2009/01/13/tudo-o-que-voce-sempre-quis-saber-sobre-o-bash-e-ninguem-nunca-te-respondeu/#comments</comments> <pubDate>Tue, 13 Jan 2009 17:40:37 +0000</pubDate> <dc:creator>Carlos Eduardo Santiviago</dc:creator> <category><![CDATA[geral]]></category> <category><![CDATA[bash]]></category><guid
isPermaLink="false">http://softwarelivre.net/?p=138</guid> <description><![CDATA[<p><a
href="http://wooledge.org:8000/BashFAQ">BashFAQ</a>, <a
href="http://wooledge.org:8000/BashGuide">BashGuide</a> e <a
href="http://wooledge.org:8000/BashPitfalls">BashPitfalls</a>. Sensacionais.</p><p>Melhores guias sobre Bash que já li até hoje, juntamente com os memoráveis livros do Aurélio e Júlio Cezar Neves.</p><p>Recomendações:</p> Quem nunca programou em bash: <a
href="http://wooledge.org:8000/BashGuide">BashGuide</a>, <a
href="http://wooledge.org:8000/BashFAQ">BashFAQ</a> e <a
href="http://wooledge.org:8000/BashPitfalls">BashPitfalls</a> Quem já programou em bash: <a
href="http://wooledge.org:8000/BashPitfalls">BashPitfalls</a>, <a
href="http://wooledge.org:8000/BashFAQ">BashFAQ</a> e caso necessário <a
href="http://wooledge.org:8000/BashGuide">BashGuide</a>.]]></description> <content:encoded><![CDATA[<p><a
href="http://wooledge.org:8000/BashFAQ">BashFAQ</a>, <a
href="http://wooledge.org:8000/BashGuide">BashGuide</a> e <a
href="http://wooledge.org:8000/BashPitfalls">BashPitfalls</a>. Sensacionais.</p><p>Melhores guias sobre Bash que já li até hoje, juntamente com os memoráveis livros do Aurélio e Júlio Cezar Neves.</p><p>Recomendações:</p><ul><li>Quem nunca programou em bash: <a
href="http://wooledge.org:8000/BashGuide">BashGuide</a>, <a
href="http://wooledge.org:8000/BashFAQ">BashFAQ</a> e <a
href="http://wooledge.org:8000/BashPitfalls">BashPitfalls</a></li><li>Quem já programou em bash: <a
href="http://wooledge.org:8000/BashPitfalls">BashPitfalls</a>, <a
href="http://wooledge.org:8000/BashFAQ">BashFAQ</a> e caso necessário <a
href="http://wooledge.org:8000/BashGuide">BashGuide</a>.</li></ul> ]]></content:encoded> <wfw:commentRss>http://softwarelivre.net/2009/01/13/tudo-o-que-voce-sempre-quis-saber-sobre-o-bash-e-ninguem-nunca-te-respondeu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>renomeie arquivos sem muito esforço</title><link>http://softwarelivre.net/2008/07/08/renomeie-arquivos-sem-muito-esforco/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=renomeie-arquivos-sem-muito-esforco</link> <comments>http://softwarelivre.net/2008/07/08/renomeie-arquivos-sem-muito-esforco/#comments</comments> <pubDate>Tue, 08 Jul 2008 15:44:47 +0000</pubDate> <dc:creator>Carlos Eduardo Santiviago</dc:creator> <category><![CDATA[dicas]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[bash]]></category><guid
isPermaLink="false">http://softwarelivre.net/?p=62</guid> <description><![CDATA[<p>Lembra do rename do antigo MS-DOS? Algo parecido:</p> $ cat rename.sh #!/bin/bash [ $# -eq 2 ] &#038;&#038; for i in *${1}; do mv "${i}" "${i%$1}${2}"; done $ ls *htm page1.htm page2.htm page3.htm page 4.htm $ ./rename.sh .htm .html $ ls *html page1.html page2.html page3.html page 4.html<p>O interessante dessa solução é que usa apenas [...]]]></description> <content:encoded><![CDATA[<p>Lembra do rename do antigo MS-DOS? Algo parecido:</p><pre lang="bash">$ cat rename.sh
#!/bin/bash
[ $# -eq 2 ] &#038;&#038; for i in *${1}; do mv "${i}" "${i%$1}${2}"; done

$ ls *htm
page1.htm  page2.htm  page3.htm  page 4.htm
$ ./rename.sh .htm .html
$ ls *html
page1.html  page2.html  page3.html  page 4.html</pre><p>O interessante dessa solução é que usa apenas comandos built-in no bash, como a substituição de parâmetros, ao invés de invocar uma sub-shell.</p><p>Quer saber mais? Veja o <a
href="http://tldp.org/LDP/abs/html" target="_blank"><em>Advanced Bash-Scripting Guide</em></a>.</p> ]]></content:encoded> <wfw:commentRss>http://softwarelivre.net/2008/07/08/renomeie-arquivos-sem-muito-esforco/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc (User agent is rejected)
Object Caching 266/266 objects using apc

Served from: softwarelivre.net @ 2012-05-21 19:55:15 -->
