[Bug 1329736] Re: When specifying a field separator with {FS=, }, the separator is not applied to the first line

2014-06-13 Thread IanBall
** Summary changed: - When specifying a field separator with {FS=,}, the separator is not applied tp the first line + When specifying a field separator with {FS=,}, the separator is not applied to the first line ** Description changed: I have a csv input file where I want to extract

[Bug 1329736] Re: When specifying a field separator with {FS=, }, the separator is not applied to the first line

2014-06-13 Thread Greg Lutostanski
Thanks for reporting this bug and taking the time to help make Ubuntu better! Unfortunately what you are experiencing is a quirk of how awk works [of which there are many :)]. Field separators are only used for the next line after they are set. To get around this you can use the BEGIN pattern to