<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Line_continuation</id>
	<title>Line continuation - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Line_continuation"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Line_continuation&amp;action=history"/>
	<updated>2026-05-14T20:28:37Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Line_continuation&amp;diff=65869&amp;oldid=prev</id>
		<title>Thomas.will: /* Beispiel – Variablenzuweisung */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Line_continuation&amp;diff=65869&amp;oldid=prev"/>
		<updated>2025-11-27T09:48:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Beispiel – Variablenzuweisung&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 27. November 2025, 09:48 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;Zeile 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Beispiel – Variablenzuweisung ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Beispiel – Variablenzuweisung ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;DATEIEN=&amp;quot;/etc/passwd \&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;DATEIEN=&amp;quot;/etc/passwd \&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /etc/group \&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /etc/group \&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /etc/shadow&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   /etc/shadow&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff::1.12:old-65162:rev-65869 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Line_continuation&amp;diff=65162&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „= Line Continuation =  * Line Continuation ermöglicht das Aufteilen langer Befehle auf mehrere Zeilen. * Dies erhöht die Lesbarkeit von Skripten und Befehlsz…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Line_continuation&amp;diff=65162&amp;oldid=prev"/>
		<updated>2025-10-17T16:24:39Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „= Line Continuation =  * Line Continuation ermöglicht das Aufteilen langer Befehle auf mehrere Zeilen. * Dies erhöht die Lesbarkeit von Skripten und Befehlsz…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Line Continuation =&lt;br /&gt;
&lt;br /&gt;
* Line Continuation ermöglicht das Aufteilen langer Befehle auf mehrere Zeilen.&lt;br /&gt;
* Dies erhöht die Lesbarkeit von Skripten und Befehlszeilen ohne die Funktionalität zu beeinträchtigen.&lt;br /&gt;
&lt;br /&gt;
== Grundprinzip ==&lt;br /&gt;
* Ein Befehl wird mit einem Backslash '\' am Ende einer Zeile fortgesetzt.&lt;br /&gt;
* Die Shell interpretiert die nächste Zeile als Teil des gleichen Befehls.&lt;br /&gt;
* Leerzeichen nach dem Backslash dürfen nicht vorhanden sein.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
* Kommando --option1 --option2 \&lt;br /&gt;
  --option3 --option4&lt;br /&gt;
&lt;br /&gt;
== Beispiel – langer Befehl ==&lt;br /&gt;
* echo &amp;quot;Dies ist ein sehr langer Befehl, der auf mehrere Zeilen \&lt;br /&gt;
  aufgeteilt wird, um die Lesbarkeit zu erhöhen.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 Ausgabe:&lt;br /&gt;
  Dies ist ein sehr langer Befehl, der auf mehrere Zeilen aufgeteilt wird, um die Lesbarkeit zu erhöhen.&lt;br /&gt;
&lt;br /&gt;
== Beispiel – Variablenzuweisung ==&lt;br /&gt;
* DATEIEN=&amp;quot;/etc/passwd \&lt;br /&gt;
  /etc/group \&lt;br /&gt;
  /etc/shadow&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* echo $DATEIEN&lt;br /&gt;
 Ausgabe:&lt;br /&gt;
  /etc/passwd /etc/group /etc/shadow&lt;br /&gt;
&lt;br /&gt;
== Hinweise ==&lt;br /&gt;
* Der Backslash '\' muss am Zeilenende stehen, kein zusätzliches Zeichen oder Leerzeichen danach.&lt;br /&gt;
* Line Continuation funktioniert sowohl für einfache Befehle als auch für komplexe Shell-Konstrukte.&lt;br /&gt;
* In Kombination mit Kommando-Listen oder Gruppierungen lassen sich sehr gut strukturierte Skripte erstellen.&lt;br /&gt;
&lt;br /&gt;
== Aufgaben ==&lt;br /&gt;
* Schreibe einen langen echo-Befehl, der über drei Zeilen geht, und überprüfe die Ausgabe.&lt;br /&gt;
* Definiere eine Variable, deren Wert über zwei Zeilen verteilt wird, und gebe sie anschließend aus.&lt;br /&gt;
* Erstelle eine Kommando-Liste über zwei Zeilen hinweg mithilfe von Line Continuation.&lt;br /&gt;
* Kombiniere Line Continuation mit einem Block in geschweiften Klammern und prüfe die Variablenwerte.&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>