extract string
Kevin D. Clark
kevin_d_clark at comcast.net
Wed Jan 11 10:07:01 EST 2006
Zhao Peng writes:
> ... your "grep univ abc.txt | cut -f3 -d, | sed s/\"//g >> dev.txt"
> works.
It "works" but is it correct?
What happens if you pass it the following line of input?:
"Aunivz","28","Cambridge Community College"
By your original problem description, you don't want to see "Cambridge
Community College" but there it is.
I might have overlooked something, but I believe that I have only seen
two people post correct solutions so far.
Just something to think about.
Regards,
--kevin
--
(There are also also 228 babies named Unique during the 1990s alone,
and 1 each of Uneekm, Uneque, and Uneqqee.)
-- _Freakonomics_, Steven D. Levitt and Stephen J. Dubner
[but no Unix folks named their kids "uniq", apparently. --kevin]
More information about the gnhlug-discuss
mailing list