be, Schreiben in »datei«</code>
<code>>> datei
Standardausgabe, Anhängen an »datei«</code>
[[http://www.linuxfibel.de/eaumle... ommando < Dateiname
Statt z. B. beim write-Kommando den Text direkt einzugeben, kann auch einen Datei an ein anderes Terminal gesendet werden:
write markus < N... i
Es ist auch möglich, die Ausgabe des Programms an eine bereits vorhandene Datei anzuhängen. Dazu wird des ">" doppelt geschrieben.
... dieselbe Datei würde prinzipiell eine zweimalige Angabe der Datei (eventuell mit einem langen Pfad) erfordern. Für die Standarddateien werden in solchen Fällen spezielle Pla
ly 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 ... qual (as strings)
2
!=
opposite of =
2
-lt
operand1 is strictly less than operand2 (both operands should be integers)
2
-gt
operand1 is strictly greater than operand2 (both operands should be integers)
2
-ge
operand1 is greater than or equal to operand2 (both operands should be integers)
2
-le
operand1 is less than or equal to op
n zu werden.
==== Shortcuts ====
mit 'history' kann man sich alle Einträge aus '~/.bash_history' anzeigen lassen.
Mit Rufzeichen (!) vor der Zahl ka... den entsprechenden Befehl sofort ausführen
Wenn man nach dem Rufzeichen einen Text eingibt, kann man diesen in der History suchen.
* [Strg + a]: z... enende
*[Strg + u]: ausschneiden bis zum Zeilenanfang
*[Strg + w]: vorhergehendes Wort ausschneiden... rg + Alt + y]: das erste Argument des vorigen Kommandos einfügen.
*[Alt + .]: das letzte Argument d
oed 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 re... is done at the local terminal (in which case we cannot prevent echoing passwords) and the result of the second command will be that every character typed will appear t... riginal state of stty is stored before the stty change and restored after the read. The following code will
kennwort3;Testuser3@linux.local</code>
Das wäre dan die Ausgabe (Username;Passwort;E-Mail).
Nun will... usw...
Auf deutsch gesagt will ich einfach das ganze zerlegen durch die ";" zerlegen und in ein array speichern.
Mit PHP ist das doch ganz einfach mit explode() möglich.
mfg
----
Ben...
done < ./users.csv
</code>
Das ist eine Bash-Variante zu explode.
PS: Und vergiss für dieses Problem