<?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/"
	>

<channel>
	<title>stbn v6.2 » Programme</title>
	<atom:link href="http://v6.stieben.de/programme/feed/" rel="self" type="application/rss+xml" />
	<link>http://v6.stieben.de/programme</link>
	<description>Selbst programmierte Werkzeuge.</description>
	<pubDate>Sat, 09 May 2009 14:35:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ICQ-Gesprächsverlauf IA</title>
		<link>http://v6.stieben.de/programme/php/icq-gesprachsverlauf-ia/</link>
		<comments>http://v6.stieben.de/programme/php/icq-gesprachsverlauf-ia/#comments</comments>
		<pubDate>Sat, 09 May 2009 14:35:55 +0000</pubDate>
		<dc:creator>Andrej Stieben</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Gesprächsverlauf]]></category>

		<category><![CDATA[ICQ]]></category>

		<category><![CDATA[Konvertierung]]></category>

		<guid isPermaLink="false">http://v6.stieben.de/programme/?p=12</guid>
		<description><![CDATA[Diese kleine Anwendung wandelt Gesprächsverläufe von ICQ 5.1 bzw. Lite (und alle anderen XML-Dateien, die genauso strukturiert sind) in gut lesbare Text- oder HTML-Dokumente um.]]></description>
			<content:encoded><![CDATA[<p>Ich habe mich <a href="http://v6.stieben.de/logbuch/2008/11/22/5-mitteilungen/">endlich mal richtig mit PHP besch&auml;ftigt</a> und gleich ein n&uuml;tzliches Werkzeug gebastelt: Diese kleine Anwendung wandelt Gespr&auml;chsverl&auml;ufe von ICQ 5.1 bzw. Lite (und alle anderen XML-Dateien, die genauso strukturiert sind) in gut lesbare Text- oder HTML-Dokumente um. Auch wenn es sicherlich interessant und technisch durchaus realisierbar w&auml;re, werden keine Gespr&auml;chsverl&auml;ufe gespeichert &ndash; ich gebe mein Wort.</p>
<p><span id="more-12"></span></p>
<form method="post" action="/programme/index.php" enctype="multipart/form-data">
					Ausgabe als:<br />
<input type="radio" name="ausgabeformat" value="Text">Text<br />
<input type="radio" name="ausgabeformat" value="HTML" checked="checked">HTML<br />
					<br />
<input type="text" name="abgehend" size="30" /> Dein Name<br />
					<br />
<input type="text" name="eingehend" size="30" /> Der Name deines Gespr&auml;chspartners<br />
					<br />
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
<input type="file" name="xml_verlauf" size="40" maxlength="100000" value="XML-Datei" />
<input stlye="background-color:	#202020; border: 0px; color:#ffffff; padding: 1px 1px;" type="submit" name="Konvertierung" value="Konvertieren" />
				</form>
<p>Beispiel-Konvertierung: Zuerst die Eingabe-, dann die Ausgabedatei (als Text).</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;root<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0x00140034<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;event<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;incoming<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Yes<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/incoming<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;time<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1189351919<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/time<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;text<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Haha, zieh dir das mal rein:
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fabz<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> Ich glaube, wir müssen an unserer Kommunikation arbeiten.. einer redet immer nur scheiße, einer sagt &quot;lol&quot; und der andere versteht nicht, was überhaupt los ist
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;atsliek<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> lol
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Nefemus<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> hm?
&nbsp;
http://ibash.de/zitat_3782.html
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/text<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/event<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;event<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;incoming<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>No<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/incoming<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;time<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1189351952<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/time<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;text<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>LOL du kannst ja in die Zukunft sehen
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/text<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/event<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/root<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">## ICQ-Gesprächsverlauf zwischen Apollonia und -+lAsEr+-
-----
&nbsp;
09.09.2007 17:31:59 Apollonia:
Haha, zieh dir das mal rein:
&nbsp;
&lt;fabz&gt; Ich glaube, wir müssen an unserer Kommunikation arbeiten.. einer redet immer nur scheiße, einer sagt &quot;lol&quot; und der andere versteht nicht, was überhaupt los ist
&lt;atsliek&gt; lol
&lt;Nefemus&gt; hm?
&nbsp;
http://ibash.de/zitat_3782.html
&nbsp;
09.09.2007 17:32:32 -+lAsEr+-:
LOL du kannst ja in die Zukunft sehen
&nbsp;
-----
## Erstellt mit ICQ-Gesprächsverlauf IA von Andrej Stieben
## http://v6.stieben.de/programme/php/icq-gesprachsverlauf-ia</pre></div></div>

<p>Ich empfehle die HTML-Ausgabe, da diese lesbarer ist.</p>
<p>Wenn dies nicht ganz das ist, was du gesucht hast, schau dir mal <a href="http://www-public.tu-bs.de:8080/~y0018468/icqlitehistoryviewer/ICQLiteHistoryViewer.html">ICQLite History Viewer .NET</a> (via <a href="http://forum.fachinformatiker.de/959697-post2.html">Fachinformatiker</a>) an.</p>
<p>F&uuml;r Hinweise auf Fehler oder allgemeine Verbesserungsvorschl&auml;ge bin ich stets offen :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://v6.stieben.de/programme/php/icq-gesprachsverlauf-ia/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Weg damit!</title>
		<link>http://v6.stieben.de/programme/bash/weg-damit/</link>
		<comments>http://v6.stieben.de/programme/bash/weg-damit/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 19:34:30 +0000</pubDate>
		<dc:creator>Andrej Stieben</dc:creator>
		
		<category><![CDATA[Bash]]></category>

		<category><![CDATA[Dateien]]></category>

		<category><![CDATA[Prozesse]]></category>

		<category><![CDATA[Unix]]></category>

		<category><![CDATA[Werkzeug]]></category>

		<guid isPermaLink="false">http://v6.stieben.de/programme/?p=3</guid>
		<description><![CDATA[Das Wahlpflichtfach "Unix und Shellprogrammierung" an der Hochschule hat sich gelohnt; ich kann nun selbst Werkzeuge schreiben, die mir die Arbeit erleichtern. Das jüngste (und eigentlich auch erste) Beispiel dafür ist "Weg damit!", eine Art Stapelverarbeitung für Dinge, die man aus dem System entfernen möchte.]]></description>
			<content:encoded><![CDATA[<p><a href="http://v6.stieben.de/programme/wp-content/uploads/2009/02/wegdamit">Version 0.0.1 herunterladen!</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Dieses kleine Werkzeug entfernt laestige &quot;Dinge&quot; wie nicht mehr</span>
<span style="color: #666666; font-style: italic;"># benoetigte Dateien oder Prozesse &quot;in einem Schwung&quot;. Es ist erfuellt</span>
<span style="color: #666666; font-style: italic;"># meine persoenlichen Anforderungen, ist aber deutlich verbesserungs-</span>
<span style="color: #666666; font-style: italic;"># wuerdig.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Nicht vergessen: Programm ausfuerbar machen (chmod +x &quot;programmname&quot;)!</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Autor:		Andrej Stieben, stieben.de</span>
<span style="color: #666666; font-style: italic;"># Aktuelle Version:	0.0.1</span>
<span style="color: #666666; font-style: italic;"># Letzte Aenderung:	27. Februar 2009</span>
<span style="color: #666666; font-style: italic;"># Historie:</span>
<span style="color: #666666; font-style: italic;">#	27.02.09	Erste Version; &quot;rm&quot; und &quot;kill&quot; funktionieren.</span>
&nbsp;
hilfetext<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Dieses Programm entfernt Dinge aus einer Liste, z.B. Dateien&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;und Prozesse.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Syntax:&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;	./<span style="color: #000099; font-weight: bold;">\&quot;</span>programmname<span style="color: #000099; font-weight: bold;">\&quot;</span> kriterium kommando [argumente]&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>kriterium<span style="color: #000099; font-weight: bold;">\&quot;</span>: Der Teil, nach dem gefiltert werden soll.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>kommando<span style="color: #000099; font-weight: bold;">\&quot;</span> : Unterstuetzt momentan <span style="color: #000099; font-weight: bold;">\&quot;</span>rm<span style="color: #000099; font-weight: bold;">\&quot;</span> und <span style="color: #000099; font-weight: bold;">\&quot;</span>kill<span style="color: #000099; font-weight: bold;">\&quot;</span>.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>argumente<span style="color: #000099; font-weight: bold;">\&quot;</span>:&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- Bei <span style="color: #000099; font-weight: bold;">\&quot;</span>rm<span style="color: #000099; font-weight: bold;">\&quot;</span> Angabe darueber, in welchem Verzeichnis&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;  geloescht werden soll. Wenn keine Angabe vorliegt, wird vom&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;  aktuellen Verzeichnis ausgegangen.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;- Bei <span style="color: #000099; font-weight: bold;">\&quot;</span>kill<span style="color: #000099; font-weight: bold;">\&quot;</span> Angabe ueber das zu sendende Signal. Standard-&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;  signal ist SIGKILL bzw. <span style="color: #000099; font-weight: bold;">\&quot;</span>-9<span style="color: #000099; font-weight: bold;">\&quot;</span>, falls die Angabe fehlt.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Weitere (sinnlose) Argumente werden ignoriert.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Beispiele:&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;	(1) ./wegdamit <span style="color: #000099; font-weight: bold;">\&quot;</span>~<span style="color: #000099; font-weight: bold;">\&quot;</span> rm perl/&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;	==&gt; Entfernt alle temporaeren Dateien (mit der&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;	    Endung <span style="color: #000099; font-weight: bold;">\&quot;</span>~<span style="color: #000099; font-weight: bold;">\&quot;</span>) aus dem Unterverzeichnis perl.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;	(2) ./wegdamit firefox kill -9&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;	==&gt; Toetet alle Firefox-Prozesse.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> = <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  hilfetext
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #000000;">1</span> = <span style="color: #ff0000;">&quot;--help&quot;</span> <span style="color: #660033;">-o</span> $<span style="color: #000000;">1</span> = <span style="color: #ff0000;">&quot;-h&quot;</span> <span style="color: #660033;">-o</span> $<span style="color: #000000;">1</span> = <span style="color: #ff0000;">&quot;?&quot;</span> <span style="color: #660033;">-o</span> $<span style="color: #000000;">1</span> = <span style="color: #ff0000;">&quot;/?&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  hilfetext
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">kriterium</span>=$<span style="color: #000000;">1</span>
<span style="color: #007800;">kommando</span>=$<span style="color: #000000;">2</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$kommando</span> = <span style="color: #ff0000;">&quot;rm&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Dateien werden geloescht (falls vorhanden)...&quot;</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> = <span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">cd</span> $<span style="color: #000000;">3</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
  <span style="color: #007800;">anzahl_zeilen</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-al</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$kriterium</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $8 }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #007800;">temp_n</span>=<span style="color: #000000;">0</span>
  <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$temp_n</span> <span style="color: #660033;">-lt</span> <span style="color: #007800;">$anzahl_zeilen</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-al</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$kriterium</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $8 }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> -<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
    <span style="color: #007800;">temp_n</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$temp_n</span> + <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">bc</span><span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #000000; font-weight: bold;">done</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Fertig!&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$kommando</span> = <span style="color: #ff0000;">&quot;kill&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Prozesse werden getoetet (falls vorhanden)...&quot;</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> = <span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">signal</span>=$<span style="color: #000000;">3</span>
  <span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #007800;">signal</span>=<span style="color: #ff0000;">&quot;-9&quot;</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
  <span style="color: #007800;">anzahl_zeilen</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-A</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$kriterium</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #007800;">temp_n</span>=<span style="color: #000000;">0</span>
  <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$temp_n</span> <span style="color: #660033;">-lt</span> <span style="color: #007800;">$anzahl_zeilen</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #007800;">$signal</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-A</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$kriterium</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> -<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
    <span style="color: #007800;">temp_n</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$temp_n</span> + <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">bc</span><span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #000000; font-weight: bold;">done</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Fertig!&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>Das Wahlpflichtfach &quot;<a href="http://de.wikipedia.org/wiki/Unix">Unix</a> und <a href="http://de.wikipedia.org/wiki/Unix-Shell">Shell</a>programmierung&quot; an der <a href="http://www.hs-fulda.de/index.php?id=71">Hochschule</a> hat sich gelohnt; ich kann nun selbst Werkzeuge schreiben, die mir die Arbeit erleichtern. Das j&uuml;ngste (und eigentlich auch erste) Beispiel daf&uuml;r ist &quot;Weg damit!&quot;, eine Art <a href="http://de.wikipedia.org/wiki/Stapelverarbeitung">Stapelverarbeitung</a> f&uuml;r Dinge, die man aus dem System entfernen m&ouml;chte. Bisher brauchte ich nichts anderes als die beiden Kommandos <span class="quelltext">rm</span> (f&uuml;r Dateien) und <span class="quelltext">kill</span> (f&uuml;r Prozesse). Ich bin jedoch sehr gern f&uuml;r Verbesserungsvorschl&auml;ge offen; dass man es (viel) besser machen kann, ist mir klar.</p>
]]></content:encoded>
			<wfw:commentRss>http://v6.stieben.de/programme/bash/weg-damit/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

