Re: grep question - how to strip spaces from the beginning ofa string?
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45131
interpreted = N
texte = Hi,Convertchars is good, but it won't distinguish positions in the text.Grep is good to find certain patterns in text, and in this case replacing those patterns. Used with the [url] the linebreaks are translated into %0[AD]-s and it can be a cool search and replace tool, skipping the otherwise necessary call to the shell/cmd/applescript/etc.Grep in WebDNA _is_ seriously missing some kinda doc/example/description. But maybe as time goes, the WebDNA DevNet can fill in this void... :) Until that: man grep (even on google... - http://www.nevis.columbia.edu/cgi-bin/man.sh?man=grep). If I can find the right regexp, it works for me... So maybe this is why it isn't overdocumented... :)))Examples: http://mini.net/tcl/989Gy>> If I may, one more.... would it be better to use grep to change an>> accented charactor to the non-accented one or just use a convertchars >> db?>>>> No, because you actually want to change a set of characters into > different characters. Grep itself is not good at this sort of > translation; you should use convertchars instead.>> John>-- Gyuri OrdodyObjects Online, Inc.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi,Convertchars is good, but it won't distinguish positions in the text.Grep is good to find certain patterns in text, and in this case replacing those patterns. Used with the [url] the linebreaks are translated into %0[AD]-s and it can be a cool search and replace tool, skipping the otherwise necessary call to the shell/cmd/applescript/etc.Grep in WebDNA _is_ seriously missing some kinda doc/example/description. But maybe as time goes, the WebDNA DevNet can fill in this void... :) Until that: man grep (even on google... - http://www.nevis.columbia.edu/cgi-bin/man.sh?man=grep). If I can find the right regexp, it works for me... So maybe this is why it isn't overdocumented... :)))Examples: http://mini.net/tcl/989Gy>> If I may, one more.... would it be better to use grep to change an>> accented charactor to the non-accented one or just use a convertchars >> db?>>>> No, because you actually want to change a set of characters into > different characters. Grep itself is not good at this sort of > translation; you should use convertchars instead.>> John>-- Gyuri OrdodyObjects Online, Inc.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Gyuri
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[OT] Deploying XRAID (2003)
WebCatalog for guestbook ? (1997)
HTML Editors (1997)
[OT] (waaaay OT) further off topic than before (2004)
Setting up shop (1997)
RE: redirect with more than 256 characters (1999)
Big Databases (1997)
old problem (2001)
Help!!!! (1999)
Beta and new version questions? (1998)
frames & carts (1997)
(1997)
b12 cannot limit records returned and more. (1997)
Why did this copyfile stop working? (2004)
WebCat2b15MacPlugin - showing [math] (1997)
Online reference (1997)
Bookmarked URL with cart (1998)
search form problem.. (1997)
RE: Signal Raised (1997)
service stop and restart (1997)