Schlagwort-Archive: shell

Yalm 05/09 erschienen

Heute ist die Mai-Ausgabe von Yalm erschienen, diesmal mit folgenden Themen:

* Vorwort
* Linux-Support – hier ist guter Rat kostenlos
* BitTorrent – Der Datenfluss des Internets
* Suchen und Ersetzen mit AltSearch
* Tipps und Tricks für die Shell (V): awk
* MIRO – Freies Internet Fernsehen
* Schlussbemerkungen

Alle Texte stehen auch als HTML sowie als minimalistische Mobile-Version zur Verfügung.

Wir würden uns freuen, wenn wir auch zu dieser Ausgabe wieder Eure Rückmeldung bekommen können – egal ob es sich um Lob, Kritik, Anmerkungen oder Artikelvorschläge handelt. Schreibt uns einfach an E-Mail, oder postet Eure Kommentare in unserem Forum.

Viel Spaß beim Lesen wünscht

Den aktuellen Originalartikel dazu lesen auf Yalm 05/09 erschienen

BASH Shell Programmierung

synchiropus_splendidus

synchiropus_splendidus

Bash is the shell, or command language interpreter, that will appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification.
siehe GNU-BASH und GNU bash manual.

Voraussetzung ist natürlich das man die Grundbefehle kennt, siehe auch 1.103.1 Arbeiten auf der Kommandozeile und die Kommentare dort.

Eine sehr hilfreiche Seite ist Bash-Befehle und Bash-Programmierung. Dort findet man nicht nur Befehle und Lektionen zur Bash-Programmierung, sondern auch Informationen zu iptables und generell zur Administration eines Linux Systems (empfehlenswert).

Learnig Shell (englisch) hat sich ebenfalls als recht nützliche Quelle erwiesen. Zur Einleitung heißt es dort:

Why bother?

Why do you need to learn the command line anyway? Well, let me tell you a story. Not long ago we had a problem where I used to work. There was a shared drive on one of our file servers that kept getting full. I won’t mention that this legacy operating system did not support user quotas; that’s another story. But the server kept getting full and stopping people from working. One of the software engineers in our company spent the better part of a day writing a C++ program that would look through the directories of all the users and add up the space they were using and make a listing of the results. Since I was forced to use the legacy OS while I was on the job, I installed a version of the bash shell that works on it. When I heard about the problem, I realized I could do all the work this engineer had done with this single line:

du -s * | sort -nr > $HOME/space_report.txt

Graphical user interfaces (GUIs) are helpful for many tasks, but they are not good for all tasks. I have long felt that most computers today do not use electricity. They instead seem to be powered by the “pumping” motion of the mouse! Computers were supposed to free us from manual labor, but how many times have you performed some task you felt sure the computer should be able to do? You ended up doing the work by tediously working the mouse. Pointing and clicking, pointing and clicking.

I once heard an author remark that when you are a child you use a computer by looking at the pictures. When you grow up, you learn to read and write. Welcome to Computer Literacy 101. Now let’s get to work.

Dann möchte ich auf die BASH Programming – Introduction HOW-TO (englisch) Seite hinweisen. Dort findet man u.a. ein Beispiele und ein kleines backup script.