[gnuwin32 - Help] RE: if (substr($1, 1, 3) == "123")...
"SourceForge.net" <[email protected]> Mon, 30 May 2011 21:33:08 +0000
| Newsgroups | gmane.comp.windows.gnu.user |
|---|---|
| Message-ID | <[email protected]> |
Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522 By: mz2ptc0 <quote>I kept thinking, What am I escaping from? If it's not too much bother, Why don't I need the escape back slashes for numerics? </quote> If you read the manual, numeric constants and string constants are treated differently. If you wanted '123' to be treated as a character string it should be enclosed in single or double quotes in the text file. Awk assumes that 123 without quotes is a decimal number. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1