====== 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
pty
echo "the variable X is not the empty string"
else
echo "empty!"
fi
</code>
http://pegasus.r... e opposite of -eq
2
=
the operands are equal (as strings)
2
!=
opposite of =
2
-lt
operand1 is strictl... 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 strin
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
apropos whatis</td><td>Show commands pertinent to string. See also <a href="scripts/threadsafe">threadsafe... ></tr>
<tr><td> </td><td class="nw">sed 's/string1/string2/g'</td><td>Replace string1 with string2</td></tr>
<tr><td> </td><td class="nw">sed 's/\(.*\)1/\12
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
ku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - co... ion of the english language file
* Copy only the strings that needs to be modified
*/
$lang['js']['nosmb... atically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
... iki can convert certain pre-defined characters or strings into images or other text or HTML.
The text to
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
a selection this wraps it with the open and close strings, else it inserts the title.
* insert - Simple string insertion. insert.
* picker - Displays the pi... notes_arr = new Array(); /* array[key]= insertion string , value = icon filename. */
notes_arr['<note></... r",
"title":"Bunch o strings",
"icon":"stuff.png