Problem with sed and awk

Doug Poland doug at polands.org
Thu Feb 26 05:32:21 PST 2004


Roubíèek Zdenìk (T-Systems PragoNet) said:
>
>  Any idea what I am missing?
>
>>cat test
> 1;1
> 2;2
>>awk -F ';' '{print $1}'
> 1
> 2
>>awk -F ' FS=";" {print $1}'
> 1;1
> 2
>>
>

awk 'BEGIN{FS=";"}{print $1}' test


-- 
Regards,
Doug



More information about the freebsd-questions mailing list