stupid question that i cant figure out - 12/08/04 12:57 AM
Well, actually 2 stupid questions.
1. I am attempting to create a simple script that will read in a text file full of lines, and output only the first word of each line into another text file, with spaces being the obvious delimeters. I have attempted to use $matchtok but that did not work because I do not know the ascii value for a space and cant find it anywhere. I use to be kick-ass at scripting a couple years ago but have sence gotten out of it and its showing now
also,
2. Even if $matchtok isnt the way to go, what is the ascii value for a space just for my future knowledge?
thanks for your help!
1. I am attempting to create a simple script that will read in a text file full of lines, and output only the first word of each line into another text file, with spaces being the obvious delimeters. I have attempted to use $matchtok but that did not work because I do not know the ascii value for a space and cant find it anywhere. I use to be kick-ass at scripting a couple years ago but have sence gotten out of it and its showing now
also,
2. Even if $matchtok isnt the way to go, what is the ascii value for a space just for my future knowledge?
thanks for your help!