[Nottingham] Sed regex problem
Eben Till
ctrl.alt.nerd at googlemail.com
Thu Oct 13 12:08:16 UTC 2011
http://txt2re.com/
Not sure if that's any help to you but it's a good resource to keep around
~Eben
On Thu, Oct 13, 2011 at 12:53 PM, Camilo Mesias <camilo at mesias.co.uk> wrote:
> HI,
>
> you might be able to use awk,
>
> awk -F, '{ OFS=","; $6 = -$6 ; print}' you-filename-here.csv
>
> That's reasonably clean apart from the gibberish to set the input and
> output field separators. I'm not sure if it will work for quoted csv
> fields though.
>
> -Cam
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20111013/1f0d8e3c/attachment.htm>
More information about the Nottingham
mailing list