diff options
author | hugo <hugoagr@gmail.com> | 2017-07-15 11:33:24 -0700 |
---|---|---|
committer | hugo <hugoagr@gmail.com> | 2017-07-15 11:33:24 -0700 |
commit | 3d3ab700d17a701e2363047c0c9c54397a99d700 (patch) | |
tree | 1b941c6c50f9fc9a311ad874f17a49457b708513 /es-es | |
parent | 915a4b21f7f996e2c94e5e2d810e749b2cdaa570 (diff) |
string funcs
Diffstat (limited to 'es-es')
-rw-r--r-- | es-es/awk-es.html.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/es-es/awk-es.html.markdown b/es-es/awk-es.html.markdown index 75b5d946..3e319267 100644 --- a/es-es/awk-es.html.markdown +++ b/es-es/awk-es.html.markdown @@ -188,11 +188,11 @@ function arithmetic_functions(a, b, c, localvar) { function string_functions( localvar, arr) { - # AWK, being a string-processing language, has several string-related - # functions, many of which rely heavily on regular expressions. + # AWK tiene algunas funciones para procesamiento de strings, + # y muchas dependen fuertemente en expresiones regulares. - # Search and replace, first instance (sub) or all instances (gsub) - # Both return number of matches replaced + # Buscar y remplazar, primer instancia (sub) o todas las instancias (gsub) + # Ambas regresan el nĂºmero de matches remplazados. localvar = "fooooobar" sub("fo+", "Meet me at the ", localvar) # localvar => "Meet me at the bar" gsub("e+", ".", localvar) # localvar => "m..t m. at th. bar" |