====== String Operations in Bash/Shell ======
Quelle((http://www.softpanorama.org/Scripting/Shellorama/... en. This is shown in the following script:
#!/bin/bash
export INFILE=${1-"infile"}
export OUTFILE=${2-... article. If you're interested in more hints about bash (or other stuff I've written about), please take ... the extension of all .html files to .htm.
#!/bin/bash
# quickly convert html filenames for use on a dos
====== 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=
====== Bind ======
Die [[Bash]] verfügt über den eingebauten Befehl 'bind'.
Damit kann man einfach P... nd Funktionen an Tastenkombinationen binden.
Der Bash-Befehl 'bind' ermöglicht es, beliebige Befehle an