Anmelden Seite Diskussion Versionen Go to the site toolbox

Bash-Anleitung

Aus CrazyLinux

Eine tolle Einführung gibt's unter http://www.linuxfibel.de/bash.htm oder BashGuide


1 How to convert a string to upper or lower case in bash?

from http://blog.spikesource.com/bashstringconversion.htm

Assuming tr is available on the system,

Convert the given argument into an all lower case string.

toLower() {
 echo $1 | tr "[:upper:]" "[:lower:]" 
} 

Convert the given argument into an all lower case string.

toUpper() {
 echo $1 | tr "[:lower:]" "[:upper:]" 


2 Lautsprecher bei der Shell ausstellen

setterm -blength 0


keywords: sh,bash,linux,console,cmd,command,shell

Site Toolbox:

Meine Werkzeuge
Creative Commons-Lizenz
Diese Seite wurde zuletzt am 26. Februar 2009 um 09:21 Uhr geändert. - Diese Seite wurde bisher 1.025-mal abgerufen. - Impressum - Über CrazyLinux
Bienenwachskerzen Baumkerzenhalter