====== String Operations in Bash/Shell ======
Quelle((http://www.softpanorama.org/Scripting/Shellorama/Reference/string_operations_in_shell.shtml))
===== Length Operator =====
There are two way to get length of the string.
The simplest one is ${#varname}, which returns ... ength of the value of the variable as a character string. For example, if filename has the value fred.c, t
parentheses)
<code>(("$a" >= "$b"))</code>
==== string comparison ====
=
is equal to
<code>if [ "$a"... application of this comparison operator.
----
-z
string is null, that is, has zero length
<code>
String='' # Zero-length ("null") string variable.
if [ -z "$String" ]
then
echo "\$String is nu
de>
Sets the bottom margin of the page. The "nnn" string can be any standard measurement value, e.g. 0.5in... the media color attribute for the page. The "foo" string is any color name that is supported by the printe... code>
Sets the left margin of the page. The "nnn" string can be any standard measurement value, e.g. 0.5in... on attribute (input tray) for the page. The "nnn" string is an integer that usually specifies the tray num
7123.209
precision(8) = 7123.2090</code>
==== toString() ====
Wandelt eine Zahl in eine Zeichenkette (String) um. Diese Methode ist dann notwendig, wenn Sie Methoden des Seite String-Objekts auf eine Zahl anwenden wollen. Die Methode toString() besitzt einen optionalen Parameter. Der Paramet
IS Software als Einwahl "Compuserve II"
- als Initstring
Einstellungen / Erweitert / weitere Einstellung... hl fuer manuelle
Modemkonfiguration(*3)
Als Initstring folgende Zeile eintragen, inklusive Anfuehrungsze... iguration(*3) zur Anwahl mit T-Mobile.
Als Initstring folgende Zeile eintragen, inklusive Anfuehrungsze... elle Modemkonfiguration(*3) mit Vodafone.
Als Initstring folgende Zeile eintragen, inklusive Anfuehrungsze
pty
echo "the variable X is not the empty string"
else
echo "empty!"
fi
</code>
http://pegasus.r... n used to examine the status of a file. There are string operators and numeric comparison operators as wel... t builtin (see section 4.3 The Set Builtin).
-z string
True if the length of string is zero.
-n stringstring
True if the length of string is non-zero.
s
n das Ende der Datei springen
* '':%s/<RegExp>/<String>/g'' im gesamten Text suchen und ersetzen
* '':s/<RegExp>/<String>/'' in der aktuellen Zeile suchen und bei der ersten Übereinstimmung ersetzen
* '':s/<RegExp>/<String>/g'' in der aktuellen Zeile suchen und bei allen ... icht mehr, ob ich die Variable jetzt vrglStr, vrglstring, vrgl_string oder vrgl_String genannt habe. Also
fglrxinfo
</code>
into a terminal. If the vendor string is not ATI, but Mesa, check [[#Removing Mesa driv... glrxinfo
</code>
into the terminal. If the vendor string contains ATI, you have installed the driver succe... ke:
<code>
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1950 Series
OpenGL version string: 2.1.7873 Releas
m
# logging in during a power failure.
# NOLOGON <string> [ disable | timeout | percent | minutes | always... master.
#SLAVE slave1
#SLAVE slave2
# USERMAGIC <string>
# Magic string use by slaves to identify themselves. Only applicable
# on slaves.
#USERMAGIC
#
# ==