<?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>brainknows.de &#187; bash Archives  :: Blog about My Life, My World and My Universe :: brainknows.de</title>
	<atom:link href="http://www.brainknows.de/tag/bash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brainknows.de</link>
	<description>Blog about My Life :: My World :: My Universe</description>
	<lastBuildDate>Thu, 12 Jan 2012 07:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flv2mp3 &#8211; Flv-Videos in Mp3 umwandeln</title>
		<link>http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html</link>
		<comments>http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html#comments</comments>
		<pubDate>Fri, 10 Dec 2010 09:16:03 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[flv2mp3]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[Musik]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=892</guid>
		<description><![CDATA[Mal wieder etwas von mir. Der letzte Eintrag ist ja nun doch schon etwas her. Ich hab (mal wieder) meinen Rechner neu aufgesetzt. Und jedes mal, wenn ich das tue, kommt früher oder später der Zeitpunkt, an dem ich Flv-Videos in mp3s umwandeln möchte. Und zu diesem Zeitpunkt ist regelmäßig auch der Zeitpunkt gekommen, zu&#8230;]]></description>
			<content:encoded><![CDATA[<p>Mal wieder etwas von mir. Der letzte Eintrag ist ja nun doch schon etwas her. </p>
<p>Ich hab (mal wieder) meinen Rechner neu aufgesetzt. Und jedes mal, wenn ich das tue, kommt früher oder später der Zeitpunkt, an dem ich Flv-Videos in mp3s umwandeln möchte. Und zu diesem Zeitpunkt ist regelmäßig auch der Zeitpunkt gekommen, zu welchem ich mich fragen muss: &#8220;wie macht man das denn gleich nochmal?&#8221;. Da ich den Befehl dafür im Terminal nicht so oft verwende, bin ich gezwungen, mich auf die Suche im Internet zu begeben. Diese Suche dauert mal länger, mal weniger länger. Um sie nun gänzlich abzukürzen, hier nun in aller Kürze (mit Würze) das vorgehen: </p>
<p>Zunächst ffmpeg, lame und libavcodec-unstripped-52 installiern:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> libavcodec-unstripped-<span style="color: #000000;">52</span> <span style="color: #c20cb9; font-weight: bold;">lame</span></div></div>
<p>(Bei lame weiß ich nicht genau, ob es installiert sein muss &#8211; schaden tut es jedenfalls nicht).</p>
<p>Fortan kann man aus flv-Videos mp3-Dateien mit folgendem Befehl erstellen :</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> video.flv <span style="color: #660033;">-ab</span> 192k musik.mp3</div></div>
<p>Hierbei wird eine mp3-Datei mit der Bitrate 192kb/s erzeugt. Andere Bitraten sind natürlich auch möglich. Lässt man den Parameter -b [bitrate] weg, wird eine Datei mit 200 kb/s erstellt. </p>
<p>Damit das Ganze jetzt NOCH einfacher ist, hab ich noch ein entsprechendes Bash-Script gesucht (und gefunden), das ich euch hier auch nicht vorenthalten möchte: </p>
<p><span id="more-892"></span></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #666666; font-style: italic;">#####################</span><br />
<span style="color: #666666; font-style: italic;">## flv2mp3</span><br />
<span style="color: #666666; font-style: italic;">#####################</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No input file&quot;</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span>.flv<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">input</span>=<span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; -h<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {inputfile.flv} {outputfile.mp3} {optional-bit-rate}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ex: $0 test.flv test.mp3 192&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Input file is not flv&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span><br />
&nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No output file&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$2</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span>.mp3<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">output</span>=<span style="color: #007800;">$2</span> <span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">output</span>=<span style="color: #007800;">$2</span><span style="color: #ff0000;">&quot;.mp3&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$3&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #007800;">btr</span>=<span style="color: #ff0000;">&quot;&quot;</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$3</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">*|</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Not acceptable Bit Rate&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Help: $0 -h&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">exit</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #007800;">btr</span>=<span style="color: #ff0000;">&quot;-ab $3&quot;</span><span style="color: #ff0000;">&quot;k&quot;</span><span style="color: #000000; font-weight: bold;">;;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$input</span> <span style="color: #007800;">$btr</span> <span style="color: #007800;">$output</span><br />
<span style="color: #666666; font-style: italic;">#end</span></div></div>
<p>Ich hatte auch andere Scripte gefunden, die haben aber leider nicht bei mir funktioniert.</p>
<p>Einfach eine Datei mit obigem Inhalt (die von mir erstellte Datei heißt sinnigerweise flv2mp3) erstellen und mit chmod +x [datei] ausführbar machen. </p>
<p>Die Anwendung ist dann denkbar einfach:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.<span style="color: #000000; font-weight: bold;">/</span>flv2mp3 video.flv audio.mp3 <span style="color: #000000;">192</span></div></div>
<p>Der letzte Parameter (die Zahl) gibt dabei die zu verwendende Bitrate an. </p>
<p>Wer das ganze jetzt auch noch systemweit und ohne vorangestelltes ./ ausführen können möchte, muss die Datei in ein Verzeichnis kopieren, das in $PATH enthalten ist. Beispielsweise, wie bei mir, /usr/sbin/:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> flv2mp3 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Beim nächsten Einloggen auf der Konsole, steht das Script dann systemweit zur Verfügung. </p>
<p>Vielen Dank an slapfish<sup><a href="http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html#footnote_0_892" id="identifier_0_892" class="footnote-link footnote-identifier-link" title="http://crunchbanglinux.org/forums/topic/6086/i-just-made-a-silly-script-to-convert-flv-files-to-mp3-using-ffmpeg/ ">1</a></sup>, der dieses Script ursprünglich veröffentlicht hat. </p>
<hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>Quellen:<ol class="footnotes"><li id="footnote_0_892" class="footnote"><a href="http://crunchbanglinux.org/forums/topic/6086/i-just-made-a-silly-script-to-convert-flv-files-to-mp3-using-ffmpeg/">http://crunchbanglinux.org/forums/topic/6086/i-just-made-a-silly-script-to-convert-flv-files-to-mp3-using-ffmpeg/ </a></li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/linux/flv2mp3-flv-videos-in-mp3-umwandeln-892.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fehlerhafte Bash-Completion unter Debian</title>
		<link>http://www.brainknows.de/allgemein/fehlerhafte-bash-completion-unter-debian-2-462.html</link>
		<comments>http://www.brainknows.de/allgemein/fehlerhafte-bash-completion-unter-debian-2-462.html#comments</comments>
		<pubDate>Tue, 04 May 2010 06:32:35 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash completion]]></category>
		<category><![CDATA[fehler]]></category>
		<category><![CDATA[lösung]]></category>
		<category><![CDATA[tipp]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=462</guid>
		<description><![CDATA[Hallo ihr, unter Debian hab ich bis gestern noch folgendes Problem mit der Bash-Completion gehabt: Habe ich z.B. das Verzeichnis /home/eggdrop aufrufen wollen und gab in /home/ cd egg --&#62; tabulator ein, erhielt ich cd egg-sh: &#60;&#40; compgen -d -- 'egg' &#41;: Datei oder Verzeichnis nicht gefunden Nach ein wenig Recherche im Internet bin ich&#8230;]]></description>
			<content:encoded><![CDATA[<p>Hallo ihr,<br />
unter Debian hab ich bis gestern noch folgendes Problem mit der Bash-Completion gehabt:</p>
<p>Habe ich z.B. das Verzeichnis /home/eggdrop aufrufen wollen und gab in /home/</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> egg --<span style="color: #000000; font-weight: bold;">&gt;</span> tabulator</div></div>
<p>ein, erhielt ich</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> egg-sh: <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #7a0874; font-weight: bold;">compgen</span> <span style="color: #660033;">-d</span> <span style="color: #660033;">--</span> <span style="color: #ff0000;">'egg'</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>: Datei oder Verzeichnis nicht gefunden</div></div>
<p>Nach ein wenig Recherche im Internet bin ich bzgl. dieses Problems fündig geworden:</p>
<p><span id="more-462"></span></p>
<p>Dem User wurde als Standard-Shell beim Anlegen /bin/sh zugeteilt, bash-completion erwartet wohl jedoch /bin/bash.</p>
<p>Um das Problem temporär zu lösen, muss man einfach als betreffender User</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">bash</span></div></div>
<p>in der Konsole eingeben. </p>
<p>Für eine dauerhafte Lösung ist die Datei /etc/passwd als root zu editieren:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">su</span><br />
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">passwd</span></div></div>
<p>Nach dem entsprechenden User suchen und am Ende der Zeile /bin/sh zu /bin/bash ändern.</p>
<p>Bei mir sähe das ganze wie folgt aus:<br />
<strong>Vorher: </strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">eggdrop:x:<span style="color: #000000;">2002</span>:<span style="color: #000000;">2002</span>::<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>eggdrop<span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span></div></div>
<p><strong>Nachher: </strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">eggdrop:x:<span style="color: #000000;">2002</span>:<span style="color: #000000;">2002</span>::<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>eggdrop<span style="color: #000000; font-weight: bold;">/</span>:<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span></div></div>
<p>Um auch zukünftig angelegten Usern gleich /bin/bash zuzuweisen, ist mit root-Rechten die Datei /etc/default/useradd zu bearbeiten:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">su</span><br />
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>useradd</div></div>
<p>Hier die Zeile</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">SHELL</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span></div></div>
<p>in</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">SHELL</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span></div></div>
<p>ändern und schon klappts auch beim nächsten anzulegenden User.</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.brainknows.de/linux/methode-um-ordner-per-ftp-rekursiv-in-der-konsole-herunterzulade-742.html" rel="bookmark" title="Permanent Link: Methode um Ordner per ftp rekursiv in der Konsole herunterzuladen">Methode um Ordner per ftp rekursiv in der Konsole herunterzuladen</a></li><li><a href="http://www.brainknows.de/linux/debian/absicherung-des-apache2-gegen-ddos-angriffe-725.html" rel="bookmark" title="Permanent Link: Absicherung des Apache2 gegen DDos-Angriffe">Absicherung des Apache2 gegen DDos-Angriffe</a></li></ul><hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/allgemein/fehlerhafte-bash-completion-unter-debian-2-462.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dateiinhalte rekursiv durchsuchen</title>
		<link>http://www.brainknows.de/allgemein/dateiinhalte-rekursiv-durchsuchen-447.html</link>
		<comments>http://www.brainknows.de/allgemein/dateiinhalte-rekursiv-durchsuchen-447.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 08:38:50 +0000</pubDate>
		<dc:creator>brain</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[dateien]]></category>
		<category><![CDATA[durchsuchen]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[inhalt]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[rekursiv]]></category>

		<guid isPermaLink="false">http://www.brainknows.de/?p=447</guid>
		<description><![CDATA[Morgen! Da ich öfter mal hunderte von Dateien nach einem bestimmten Textstrings durchsuchen muss, stand ich öfter vor der Frage, wie man das am besten in der Konsole gestalten könnte. mit cat &#124; grep kann man zwar die Dateien durchsuchen und Ergebnisse darstellen lassen. Jedoch funktioniert das ganze nicht, wenn das Verzeichnis Unterordner hat. Auch&#8230;]]></description>
			<content:encoded><![CDATA[<p>Morgen!</p>
<p>Da ich öfter mal hunderte von Dateien nach einem bestimmten Textstrings durchsuchen muss, stand ich öfter vor der Frage, wie man das am besten in der Konsole gestalten könnte. mit cat | grep kann man zwar die Dateien durchsuchen und Ergebnisse darstellen lassen. Jedoch funktioniert das ganze nicht, wenn das Verzeichnis Unterordner hat. Auch werden zwar die Ergebnisse angezeigt, aber nicht, in welchen Dateien genau der String vorhanden ist. Folgender Befehl schafft da Abhilfe:</p>
<p><div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;STRING&quot;</span> <span style="color: #000000; font-weight: bold;">*</span></div></div>
</p>
<p>Eigentlich ganz einfach, oder?</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://www.brainknows.de/linux/methode-um-ordner-per-ftp-rekursiv-in-der-konsole-herunterzulade-742.html" rel="bookmark" title="Permanent Link: Methode um Ordner per ftp rekursiv in der Konsole herunterzuladen">Methode um Ordner per ftp rekursiv in der Konsole herunterzuladen</a></li></ul><hr /><small>Copyright &copy; 2008-2010<br />
Die Nutzung dieses Feeds ist zur ausschließlichen privaten, nichtkommerziellen Nutzung gestattet.<br />
Die Nutzung auf anderen Webseiten als des Autors Webseite in Teilen oder ganz stellt eine Verletzung geltenden Urheberrechts dar und wird u. U. zivilrechtlich und/oder strafrechtlich verfolgt werden.<br />(Digital Fingerprint:  59591af35c5dc48841f5603d1d269293 (38.107.179.218) )</small>]]></content:encoded>
			<wfw:commentRss>http://www.brainknows.de/allgemein/dateiinhalte-rekursiv-durchsuchen-447.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

