for i in foo bar baz; do eval echo \${$foo:?} one bash: bar: parameter null or not set bash: baz: parameter null or not set
== NOTE ==
Th... usually left on the command like literally. Under bash this is a user-settable option. In fact, under bash you can disable shell "globbing" if you like -- t... parator in the Bourne, and Korn shells as well as bash) to parse each line of /etc/passwd and extract ju... f string parsing and manipulation directly within bash -- which will allow our shell scripts to run fast
stimmten Umständen sinnvoll sein, die History der Bash zumindest für root zu deaktivieren. Dazu muss man die Datei '''~/.bash_history''' löschen und in der Datei '''~/.bashrc'... nden.
Die programmierbare Vervollständigung der Bash lässt sich aktivieren, in dem man in '''/etc/bash.bashrc''' oder '''~/.bashrc''' den folgenden Bloc... en der [[Vorlage(Tasten, Tab)]]-Taste.
## * [:Bash/Autocomplete: Autocomplete] Die Bash erkennt angefangene Befehle und kann sie selbst v... nun zum Beispiel auch eine *.log-Datei
## * [:Bash/Wildcards: Wildcards] Die Bash kann Textmuster erkennen.
= Hintergrundprozess
for-ubuntu-debian-suse-redhat-linux-etc/))
{{tag>bash sh shortcuts "bash shortcuts"}}
====== Keyboard Shortcuts for Bash ... om digg have pointed out that you can also switch bash to use vi style editing keys. This article covers the default bash keys, but I’ll write another one to cover vi styl
====== Bash Shell Tests ======
Quelle((http://tldp.org/LDP/abs/html/comparison-ops.html))
===== Other C... thmetic and string comparisons ===
<code>
#!/bin/bash
a=4
b=5
# Here "a" and "b" can be treated eith... n the arithmetic and string comparisons,
#+ since Bash variables are not strongly typed.
# Bash permits integer operations and comparisons on variables
#+ w
rver in Verzeichnis gehen und Datei holen:
<code bash>cd /var/www/webserver/
wget http://www.splitbrain... fenes Verzeichnis in das 'alte' umbenennen.
<code bash>
tar xfvz dokuwiki-2013-05-10.tgz
mv wiki wiki_org
mv dokuwiki-2013-05-10 wiki
cd wiki
</code bash>
Jetzt alle älteren Dateien aus alten Wiki kopier... n beibehalten!!)) (& htaccess wg. Rewrite)
<code bash>
cp -rau ../wiki_org/* .
cp ../wiki_org/.htaccess
====== IF-Operator ======
<code bash>
#!/bin/bash
X=""
if [ -n "$X" ]; then # -n tests to see if the argument is non empty
echo "... </code>
http://pegasus.rutgers.edu/~elflord/unix/bash-tute.html:
A brief summary of test operators
He... you need anything else, you can always check the bash manpage ... )
operator
produces true if...
num
</code>
Then chroot
<code>sudo chroot /mnt /bin/bash</code>
su to your username. My username is bob s... /sys /mnt/sys
mint@mint ~ $ sudo chroot /mnt /bin/bash
_______________________________________
( Many c... top
-rw------- 1 bob bob 214 2010-09-03 16:18 .bash_history
drwx------ 3 bob bob 4096 2010-07-15 23
m rom hinein.
create_symlinks.sh
<code>#!/bin/bash
# Pfad zum zentralen ROM-Verzeichnis
rom_source=... e
</code>
cat remove_symlinks.sh
<code>#!/bin/bash
# Pfad zu den Tabellenverzeichnissen
table_dirs=