<?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>Shell Archivi -</title>
	<atom:link href="https://simonetocco.it/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://simonetocco.it/tag/shell/</link>
	<description></description>
	<lastBuildDate>Sat, 16 Sep 2017 06:44:51 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://simonetocco.it/wp-content/uploads/2020/12/logoSimone-1-150x150.png</url>
	<title>Shell Archivi -</title>
	<link>https://simonetocco.it/tag/shell/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Grep Ricorsivo in Sottocartelle</title>
		<link>https://simonetocco.it/grep-ricorsivo-sottocartelle/</link>
					<comments>https://simonetocco.it/grep-ricorsivo-sottocartelle/#respond</comments>
		
		<dc:creator><![CDATA[Simone Tocco]]></dc:creator>
		<pubDate>Sat, 16 Sep 2017 06:44:51 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[ricorsivo]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[terminale]]></category>
		<guid isPermaLink="false">http://simonetocco.it/?p=1621</guid>

					<description><![CDATA[<p>Nei Sistemi UNIX è possibile utilizzare il comando Grep da terminale per trovare una stringa all&#8217;interno di un file. E&#8217; possibile inoltre effettuare un grep ricorsivo nelle sottocartelle in questo modo: grep -r -i "stringa da ricercare" /path/della/cartella/ in questo modo verranno mostrati a video tutti i file che presentano la stringa inserita Hai bisogno [&#8230;]</p>
<p>L'articolo <a href="https://simonetocco.it/grep-ricorsivo-sottocartelle/">Grep Ricorsivo in Sottocartelle</a> sembra essere il primo su <a href="https://simonetocco.it"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Nei Sistemi UNIX è possibile utilizzare il comando Grep da terminale per trovare una stringa all&#8217;interno di un file. E&#8217; possibile inoltre effettuare <strong>un grep ricorsivo nelle sottocartelle</strong> in questo modo:</p>
<p><code>grep -r -i "stringa da ricercare" /path/della/cartella/</code></p>
<p>in questo modo verranno mostrati a video tutti i file che presentano la stringa inserita</p>
<!--------------------------------------><!-- Conversion Box Made Using : -------><!-- WP Conversion Boxes - -------------><!-- http://wpconversionboxes.com --><!--------------------------------------><div class="wpcb_nothing_offset"></div>

<style>
    
    .wpcb_template_main_1{
        
        background-color: #0faf97;
        width: 100%;
        height: ;
        border-width: ;
        border-color: ;
        margin-top: ;
        margin-bottom: ;
        margin-left: ;
        margin-right: ;
        padding: 20px;
        -webkit-box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);
        -moz-box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);
        box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);     
        
    }
    
    .wpcb_template_main_1 .wpcb_box_heading{
        background-color: ;
        padding-top: 0px;
    }
    
    .wpcb_template_main_1 .wpcb_box_heading_text{
        font-family:    'Arial', serif;
        font-size:      32px;
        line-height:    38px;
        color:          #ffffff;
        text-align:     center;
        text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.25);
        font-weight: 900;
        margin: 0;
    }
    
    .wpcb_template_main_1 .wpcb_box_content_container{
        
    }    
    
    .wpcb_template_main_1 .wpcb_box_content{
        font-family:    Arial;
        font-size:      20px;
        line-height:    24px;
        color:          #ffffff;
        text-align:     center;
        padding: 20px 0px;
    }
    
    .wpcb_template_main_1 .wpcb_box_button_div{
        text-align: center;
    }
    
    .wpcb_template_main_1 .wpcb_box_button_div a.wpcb_box_button, .wpcb_template_main_1 .wpcb_box_button_div button.wpcb_box_button{
        font-family:    Arial;
        font-size:      16px;
        color:          #fff;
        background-color: #4f78f2;
        border-radius: 30px;
        width: ;
        padding: 10px 15px;
    }
    
    .wpcb_button_gradient{background-image : -moz-linear-gradient(top, #4f78f2, #1851f9);background-image : -ms-linear-gradient(top, #4f78f2, #1851f9);background-image : -webkit-gradient(linear, #4f78f2, #1851f9);background-image : -webkit-linear-gradient(top, #4f78f2, #1851f9);background-image : -o-linear-gradient(top, #4f78f2, #1851f9);background-image : linear-gradient(top, #4f78f2, #1851f9);filter : progid:DXImageTransform.Microsoft.gradient(startColorstr=&quot;#4f78f2&quot;, endColorstr=&quot;#1851f9&quot;, GradientType=0);border-color : +#4f78f2 #1851f9 #1851f9;background-color : #4f78f2;}    
        
</style>


<div class="wpcb_template_main wpcb_template_main_1 wpcb_nothing wpcb_nothing" data-fadetime="0">
    <div class="wpcb_box_all_content_container">
        <div class="wpcb_box_content_container">    
            <div class="wpcb_box_heading">
                <div class="wpcb_box_heading_text">Hai bisogno di una consulenza o assistenza?</div>
            </div>            
            <div class="wpcb_box_content">
                Apri un ticket di richiesta, ti risponderò in brevissimo tempo! Chiedere non costa nulla <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" />            </div>    
            <div class="wpcb_box_button_div">
                <a href="http://simonetocco.it/assistenza-e-consulenza/" target="" id="wpcb_box_button_1" class="wpcb_box_button wpcb_button_gradient">Apri Richiesta</a>
            </div>
        </div>    
    </div>
</div><!------------------------------><!-- Conversion Box Ends Here --><!------------------------------><div class="wpcb-tracker" data-id="3641705" data-boxid="1" data-visitedpage="https://simonetocco.it:443/tag/shell/feed/" data-visittype="visit"></div><p>L'articolo <a href="https://simonetocco.it/grep-ricorsivo-sottocartelle/">Grep Ricorsivo in Sottocartelle</a> sembra essere il primo su <a href="https://simonetocco.it"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://simonetocco.it/grep-ricorsivo-sottocartelle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ridimensionare immagini o cartelle di immagini da shell</title>
		<link>https://simonetocco.it/ridimensionare-immagini-o-cartelle-di-immagini-da-shell/</link>
		
		<dc:creator><![CDATA[Simone Tocco]]></dc:creator>
		<pubDate>Mon, 20 Jan 2014 18:56:37 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ridimensionare immagini]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.draco-corporation.com/?p=824</guid>

					<description><![CDATA[<p>Spesso ci si trova davanti all&#8217;esigenza di ridimensionare molte immagini per gli utilizzi più disparati soprattutto per il loro utilizzo sul web. Con linux basta una sola linea di comando shell per realizzare l&#8217;obiettivo utilizzando uno strumento gratuito chiamato ImageMagick: Se non lo abbiamo già, procediamo alla sua istallazione: sudo apt-get install imagemagick &#160; Dopo [&#8230;]</p>
<p>L'articolo <a href="https://simonetocco.it/ridimensionare-immagini-o-cartelle-di-immagini-da-shell/">Ridimensionare immagini o cartelle di immagini da shell</a> sembra essere il primo su <a href="https://simonetocco.it"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Spesso ci si trova davanti all&#8217;esigenza di <strong>ridimensionare molte immagini</strong> per gli utilizzi più disparati soprattutto per il loro utilizzo sul web. Con linux basta una sola linea di comando shell per realizzare l&#8217;obiettivo utilizzando uno strumento gratuito chiamato <strong>ImageMagick</strong>:</p>
<p>Se non lo abbiamo già, procediamo alla sua istallazione:</p>
<pre lang="bash">sudo apt-get install imagemagick</pre>
<p>&nbsp;</p>
<p>Dopo averlo istallato, possiamo utilizzare diverse opzioni una fra queste è:</p>
<pre lang="bash">convert *.jpg -resize 50% outputimg.jpg</pre>
<p>Questo comando ridurrà del 50% tutti i file jpg contenuti nella cartella corrente ridenominandoli in outputimg.jpg</p>
<p>Oppure con qualcosa di più professionale</p>
<pre lang="bash">for i in *.jpg; do new_file=${i/.*/};convert ${i} -resize 50% ${i} ${new_file}_new.jpg; done</pre>
<p>Che ridurrà del 50% tutte le immagini jpg della cartella mantenendo il nome di ciascun file</p>
<!--------------------------------------><!-- Conversion Box Made Using : -------><!-- WP Conversion Boxes - -------------><!-- http://wpconversionboxes.com --><!--------------------------------------><div class="wpcb_nothing_offset"></div>

<style>
    
    .wpcb_template_main_1{
        
        background-color: #0faf97;
        width: 100%;
        height: ;
        border-width: ;
        border-color: ;
        margin-top: ;
        margin-bottom: ;
        margin-left: ;
        margin-right: ;
        padding: 20px;
        -webkit-box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);
        -moz-box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);
        box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);     
        
    }
    
    .wpcb_template_main_1 .wpcb_box_heading{
        background-color: ;
        padding-top: 0px;
    }
    
    .wpcb_template_main_1 .wpcb_box_heading_text{
        font-family:    'Arial', serif;
        font-size:      32px;
        line-height:    38px;
        color:          #ffffff;
        text-align:     center;
        text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.25);
        font-weight: 900;
        margin: 0;
    }
    
    .wpcb_template_main_1 .wpcb_box_content_container{
        
    }    
    
    .wpcb_template_main_1 .wpcb_box_content{
        font-family:    Arial;
        font-size:      20px;
        line-height:    24px;
        color:          #ffffff;
        text-align:     center;
        padding: 20px 0px;
    }
    
    .wpcb_template_main_1 .wpcb_box_button_div{
        text-align: center;
    }
    
    .wpcb_template_main_1 .wpcb_box_button_div a.wpcb_box_button, .wpcb_template_main_1 .wpcb_box_button_div button.wpcb_box_button{
        font-family:    Arial;
        font-size:      16px;
        color:          #fff;
        background-color: #4f78f2;
        border-radius: 30px;
        width: ;
        padding: 10px 15px;
    }
    
    .wpcb_button_gradient{background-image : -moz-linear-gradient(top, #4f78f2, #1851f9);background-image : -ms-linear-gradient(top, #4f78f2, #1851f9);background-image : -webkit-gradient(linear, #4f78f2, #1851f9);background-image : -webkit-linear-gradient(top, #4f78f2, #1851f9);background-image : -o-linear-gradient(top, #4f78f2, #1851f9);background-image : linear-gradient(top, #4f78f2, #1851f9);filter : progid:DXImageTransform.Microsoft.gradient(startColorstr=&quot;#4f78f2&quot;, endColorstr=&quot;#1851f9&quot;, GradientType=0);border-color : +#4f78f2 #1851f9 #1851f9;background-color : #4f78f2;}    
        
</style>


<div class="wpcb_template_main wpcb_template_main_1 wpcb_nothing wpcb_nothing" data-fadetime="0">
    <div class="wpcb_box_all_content_container">
        <div class="wpcb_box_content_container">    
            <div class="wpcb_box_heading">
                <div class="wpcb_box_heading_text">Hai bisogno di una consulenza o assistenza?</div>
            </div>            
            <div class="wpcb_box_content">
                Apri un ticket di richiesta, ti risponderò in brevissimo tempo! Chiedere non costa nulla <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" />            </div>    
            <div class="wpcb_box_button_div">
                <a href="http://simonetocco.it/assistenza-e-consulenza/" target="" id="wpcb_box_button_1" class="wpcb_box_button wpcb_button_gradient">Apri Richiesta</a>
            </div>
        </div>    
    </div>
</div><!------------------------------><!-- Conversion Box Ends Here --><!------------------------------><div class="wpcb-tracker" data-id="3641707" data-boxid="1" data-visitedpage="https://simonetocco.it:443/tag/shell/feed/" data-visittype="visit"></div><p>L'articolo <a href="https://simonetocco.it/ridimensionare-immagini-o-cartelle-di-immagini-da-shell/">Ridimensionare immagini o cartelle di immagini da shell</a> sembra essere il primo su <a href="https://simonetocco.it"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Dividere un file</title>
		<link>https://simonetocco.it/dividere-un-file/</link>
					<comments>https://simonetocco.it/dividere-un-file/#respond</comments>
		
		<dc:creator><![CDATA[Simone Tocco]]></dc:creator>
		<pubDate>Wed, 09 May 2012 21:52:36 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PERL]]></category>
		<category><![CDATA[Parsing]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[SPlit]]></category>
		<guid isPermaLink="false">http://www.draco-corporation.com/?p=507</guid>

					<description><![CDATA[<p>In alcuni casi, può succedere che si abbia bisogno di dividere un file in sottoparti. Un esempio può essere parsing su file con dimensioni molto grandi. In questo caso uno script non riuscirebbe ad effettuare l&#8217;analisi sul testo in quanto non basterebbe la memoria allocata dal Sistema Operativo. Per ovviare al problema, si potrebbe andare [&#8230;]</p>
<p>L'articolo <a href="https://simonetocco.it/dividere-un-file/">Dividere un file</a> sembra essere il primo su <a href="https://simonetocco.it"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In alcuni casi, può succedere che si abbia bisogno di dividere un file in sottoparti. Un esempio può essere parsing su file con dimensioni molto grandi. In questo caso uno script non riuscirebbe ad effettuare l&#8217;analisi sul testo in quanto non basterebbe la memoria allocata dal Sistema Operativo. Per ovviare al problema, si potrebbe andare a modificare le dimensioni di memoria allocate ad esempio utilizzando il comando <strong>ulimit</strong> su Linux per modificare l&#8217;allocazione delle diverse sezioni. Un&#8217;altra strada, è rappresentata dalla divisione del file in multi parti utilizzando linux. Ammettendo di avere un file contenente numerosi indirizzi e-mail, di dimensioni 1,2 Gb e denominato e-mail.txt, potremo ricorrere su una shell al comando</p>
<pre lang="bash">split -b Xm nome_file prefisso
</pre>
<p>quindi nel nostro esempio</p>
<pre lang="bash">split -b 200m e-mail.txt multi-
</pre>
<p>otterremo una serie di file ogni 200Mb con nome multi-a, multi-b, multi-c ecc&#8230;</p>
<!--------------------------------------><!-- Conversion Box Made Using : -------><!-- WP Conversion Boxes - -------------><!-- http://wpconversionboxes.com --><!--------------------------------------><div class="wpcb_nothing_offset"></div>

<style>
    
    .wpcb_template_main_1{
        
        background-color: #0faf97;
        width: 100%;
        height: ;
        border-width: ;
        border-color: ;
        margin-top: ;
        margin-bottom: ;
        margin-left: ;
        margin-right: ;
        padding: 20px;
        -webkit-box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);
        -moz-box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);
        box-shadow: inset 0px 0px 200px -38px rgba(0,0,0,0.5);     
        
    }
    
    .wpcb_template_main_1 .wpcb_box_heading{
        background-color: ;
        padding-top: 0px;
    }
    
    .wpcb_template_main_1 .wpcb_box_heading_text{
        font-family:    'Arial', serif;
        font-size:      32px;
        line-height:    38px;
        color:          #ffffff;
        text-align:     center;
        text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.25);
        font-weight: 900;
        margin: 0;
    }
    
    .wpcb_template_main_1 .wpcb_box_content_container{
        
    }    
    
    .wpcb_template_main_1 .wpcb_box_content{
        font-family:    Arial;
        font-size:      20px;
        line-height:    24px;
        color:          #ffffff;
        text-align:     center;
        padding: 20px 0px;
    }
    
    .wpcb_template_main_1 .wpcb_box_button_div{
        text-align: center;
    }
    
    .wpcb_template_main_1 .wpcb_box_button_div a.wpcb_box_button, .wpcb_template_main_1 .wpcb_box_button_div button.wpcb_box_button{
        font-family:    Arial;
        font-size:      16px;
        color:          #fff;
        background-color: #4f78f2;
        border-radius: 30px;
        width: ;
        padding: 10px 15px;
    }
    
    .wpcb_button_gradient{background-image : -moz-linear-gradient(top, #4f78f2, #1851f9);background-image : -ms-linear-gradient(top, #4f78f2, #1851f9);background-image : -webkit-gradient(linear, #4f78f2, #1851f9);background-image : -webkit-linear-gradient(top, #4f78f2, #1851f9);background-image : -o-linear-gradient(top, #4f78f2, #1851f9);background-image : linear-gradient(top, #4f78f2, #1851f9);filter : progid:DXImageTransform.Microsoft.gradient(startColorstr=&quot;#4f78f2&quot;, endColorstr=&quot;#1851f9&quot;, GradientType=0);border-color : +#4f78f2 #1851f9 #1851f9;background-color : #4f78f2;}    
        
</style>


<div class="wpcb_template_main wpcb_template_main_1 wpcb_nothing wpcb_nothing" data-fadetime="0">
    <div class="wpcb_box_all_content_container">
        <div class="wpcb_box_content_container">    
            <div class="wpcb_box_heading">
                <div class="wpcb_box_heading_text">Hai bisogno di una consulenza o assistenza?</div>
            </div>            
            <div class="wpcb_box_content">
                Apri un ticket di richiesta, ti risponderò in brevissimo tempo! Chiedere non costa nulla <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" />            </div>    
            <div class="wpcb_box_button_div">
                <a href="http://simonetocco.it/assistenza-e-consulenza/" target="" id="wpcb_box_button_1" class="wpcb_box_button wpcb_button_gradient">Apri Richiesta</a>
            </div>
        </div>    
    </div>
</div><!------------------------------><!-- Conversion Box Ends Here --><!------------------------------><div class="wpcb-tracker" data-id="3641709" data-boxid="1" data-visitedpage="https://simonetocco.it:443/tag/shell/feed/" data-visittype="visit"></div><p>L'articolo <a href="https://simonetocco.it/dividere-un-file/">Dividere un file</a> sembra essere il primo su <a href="https://simonetocco.it"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://simonetocco.it/dividere-un-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
