====== 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
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 ... ich die Variable jetzt vrglStr, vrglstring, vrgl_string oder vrgl_String genannt habe. Also im Code die Z
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
#
# ==
atically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
... class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
</code>
The following language strings
{{::bashanleitung.pdf|PDF (Powerpoint)}}
[[bash:string_operations|String-Operations]]
Quelle((http://wiki.ubuntuusers.de/Bash))
Die Bash ist mittlerweile so
g() ====
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 Method
ment]]
[[http://dev.mysql.com/doc/refman/5.0/en/string-functions.html|STRING-functions of mySQL]]
{{::sql.jpg?600|}}
===== Interne Variable zum Sortieren von