====== Ein- und Ausgaben beim Bashscript umleiten ======
Ein- und Ausgaben können umgeleitet werden
Eine solche Umleitung ist für die beteiligten Prozesse transparent, d.h. dem Prozess i
It's by no means comprehensive, but its likely to be all you'll need to remember (if you need anything else, you can always check the bash manpage ... )
operator
produces true if...
number of operands
-n
operand non zero length
1
-z
op... strictly less than operand2 (both operands should be integers)
2
-gt
operand1 is strictly greater tha
====== String nach bestimmten Zeichen splitten/cutten /wie explode in PHP) ======
Quelle((http://www... stuser3@linux.local</code>
Das wäre dan die Ausgabe (Username;Passwort;E-Mail).
Nun will ich aber, den Usernamen, Passwort und E-Mail Adresse in einer eigenen Variabel speichern, z.b.: in der variabel username kommt
meters including whether or not characters should be echoed to the terminal. To turn off echoing, the command stty -echo can be used. Any subsequent user input (including commands typed at the shell) will not be echoed.
To restore the echoing, use stty echo. ... swords) and the result of the second command will be that every character typed will appear twice.
To
==== Tasks in den Hintergrund ====
Darüber hinaus übernimmt unter Linux die Kommandozeile auch die Kontrolle über laufende Tasks, wenn Sie das wollen.
Hängen Si... eit mit <Strg>-<Z> unterbrechen, ohne es komplett beenden zu müssen.
Sie können es dann mit "fg" wie
Mit der Shell lassen sich mittels //find// alle/bestimmte Datei nach vorgegebenen Inhalten durchsuchen:
<code>
find . -name "*.php" -print -exec grep 'S... \;
</code>
Statt \{\} und \; kann man auch schreiben: "{}" und ";"
Coll, weil nur Ergebnisse:
<cod... e in Schatzkiste. Sie werden nach der Zahl in Centbeträgen in den Dateinamen kodiert. Also z.B. 2€ : 0