For faster navigation, this Iframe is preloading the Wikiwand page for Einzeiler (Informatik).

Einzeiler (Informatik)

aus Wikipedia, der freien Enzyklopädie

Ein Einzeiler in der Informationstechnik (IT) beschreibt in verschiedenstem Zusammenhang eine Anweisung, Abfrage, Kommandokette (Pipe) und ähnliches, die sinnvoll nur aus einer Zeile besteht, also keine Fortsetzungszeilen.[1][Anm 1]

Wikipedia Logo
Wikipedia Logo
In der Wikipedia-Syntax ist eine Weiterleitung ein Einzeiler:
Einzeiler (in der Literatur) → #WEITERLEITUNG [[Monostichon]][Anm 2]
Python Logo
Python Logo
python -c "print ''.join([['ler.', 'ei', 'es ', 'i', 'Di', 'n E', 'st ','nzei'][i] for i in [4,2,3,6,1,5,3,7,0]])"[Anm 3]
Dies ist ein Einzeiler.
Bash Logo
Bash Logo
while true;do echo -n "`date`: ";if (date '+%S'|grep -q '0$'); then echo getroffen;else echo weiter;fi;sleep 1;done[Anm 3]
Fri 04 Nov 2022 08:00:47 AM CET: weiter
Fri 04 Nov 2022 08:00:48 AM CET: weiter
Fri 04 Nov 2022 08:00:49 AM CET: weiter
Fri 04 Nov 2022 08:00:50 AM CET: getroffen
Fri 04 Nov 2022 08:00:51 AM CET: weiter
Fri 04 Nov 2022 08:00:52 AM CET: weiter
Fri 04 Nov 2022 08:00:53 AM CET: weiter
Fri 04 Nov 2022 08:00:54 AM CET: weiter
Fri 04 Nov 2022 08:00:55 AM CET: weiter
Fri 04 Nov 2022 08:00:56 AM CET: weiter
Fri 04 Nov 2022 08:00:58 AM CET: weiter
Fri 04 Nov 2022 08:00:59 AM CET: weiter
Fri 04 Nov 2022 08:01:00 AM CET: getroffen
Fri 04 Nov 2022 08:01:01 AM CET: weiter
Fri 04 Nov 2022 08:01:02 AM CET: weiter
Fri 04 Nov 2022 08:01:03 AM CET: weiter
^C[Anm 4]
< >
< >
Mehrzeiliges Gegenbeispiel:
while true
  do
   echo -n "`date`: "
   if (date '+%S'|grep -q '0$')
    then echo getroffen
    else echo weiter
   fi
   sleep 1
  done

Windows Logo
Windows Logo
Plattformabhängiges Beispiel im Datenbanksystem Oracle unter Microsoft Windows:[2][Anm 5]
echo select sysdate from dual;|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3]
SYSDATE
--------
05.11.22
echo "select sysdate from dual;"|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3] SP2-0734: Unbekannter Befehl ab ""select sy..." – restliche Zeile ignoriert.
echo 'select sysdate from dual;'|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3] SP2-0734: Unbekannter Befehl ab „'select sy...“ – restliche Zeile ignoriert.
echo select sysdate from dual\;|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3] select sysdate from dual * FEHLER in Zeile 1: ORA-00911: Ungultiges Zeichen
Tux, der Linux-Pinguin
Tux, der Linux-Pinguin
Plattformabhängiges Beispiel im Datenbanksystem Oracle unter unixartigem System:[3][Anm 5]
echo select sysdate from dual;|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3]
-bash: syntax error near unexpected token `|'
echo "select sysdate from dual;"|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3] SYSDATE -------- 05.11.22
echo 'select sysdate from dual;'|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3] SYSDATE -------- 05.11.22
echo select sysdate from dual\;|sqlplus -s scott/tiger@//localhost:1521/orclpdb.local[Anm 3] SYSDATE -------- 05.11.22
Windows Logo
Windows Logo
Tux, der Linux-Pinguin
Tux, der Linux-Pinguin
Gegenbeispiel mit Hilfsdatei:
more sysdate.sql
select sysdate from dual;
exit
sqlplus -s scott/tiger@//localhost:1521/orclpdb.local @sysdate.sql[Anm 3] SYSDATE -------- 09.11.22
Bash Logo
Bash Logo
Gegenbeispiel mit Here-Dokument:
sqlplus -s scott/tiger@//localhost:1521/orclpdb.local << EOF[Anm 3]
 select sysdate from dual;
 select 'Ende' as Text from dual;
 exit
EOF
SYSDATE
--------
09.11.22
TEXT ---- Ende
  1. Diese Artikeleinleitung ist selbst ein Einzeiler.
  2. Zur Überprüfung: Artikel Einzeiler öffnen und dann unter Monostichon auf Weitergeleitet von … klicken, sodann Bearbeiten (ohne abzuspeichern).
  3. a b c d e f g h i j k l Dies muss auf einer Zeile stehen, falls der Browser das umbricht.
  4. Abgebrochen mit Ctrl/C
  5. a b Zurückzuführen auf die unterschiedliche Behandlung von Quoting und Maskierungszeichen.

Einzelnachweise

[Bearbeiten | Quelltext bearbeiten]
  1. Microsoft-Programm optimal nutzen: Powerpoint: Tipps & Tricks aus der Praxis. Abgerufen am 2. November 2022.
  2. Celin Cherian: SQL*Plus® User's Guide and Reference 19c. E96459-06. Oracle, Juli 2021, abgerufen am 12. November 2022 (englisch).
  3. Bash Dokumentation, Abschnitt Quoting. Abgerufen am 5. November 2022.Man Page
{{bottomLinkPreText}} {{bottomLinkText}}
Einzeiler (Informatik)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?