Differences between revisions 1 and 39 (spanning 38 versions)
Revision 1 as of 2009-06-04 19:45:51
Size: 953
Editor: GeoHump
Comment:
Revision 39 as of 2016-03-23 06:21:03
Size: 243
Editor: MirtaFrods
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Bash can do string operations. LOTS of string operations. This is an introduction to bash string operations for those new to Bash's special tool/feature called "Parameter Expansion", (PE), with a focus on typical string operations. Note Bash's Parameter Expansion, (PE), capability is a lot more powerful than the typical string manipulation calls you may be used to. There are some twists in the road up ahead.

Here is a list of some typical string manipulation functions/subroutines that you may already be familiar with:

 * strlen
 * leftstr
 * rightstr
 * substr
 * midstr
 * basename
 * dirname
 * getext
 * dropext

This article will cover how to do all of these using the Bash PE and will introduce the more powerful actions available with PE's. Please note there is a BasfFaq about PE's already. That FAQ cover's more of the scope of PE capabilities, where this one instead focuses on string operations.
----
CategoryShell
Early Childhood (Pre-Primary School) Teacher Jospeh from Fort Saskatchewan, enjoys to spend time fast, Corel Draw x7 keygen - [[http://ow.ly/ZrHSu|reference]], and computer. Had been in recent past traveling to Mapungubwe Cultural Landscape.

Early Childhood (Pre-Primary School) Teacher Jospeh from Fort Saskatchewan, enjoys to spend time fast, Corel Draw x7 keygen - reference, and computer. Had been in recent past traveling to Mapungubwe Cultural Landscape.

BashFAQ/100 (last edited 2023-06-26 10:03:19 by StephaneChazelas)