[GnuWin32-Users] [gnuwin32 - Help] RE: if (substr($1, 1, 3) == "123")...
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
From: SourceForge.net <no...@so...> - 2011-05-30 21:33:41
|
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 |