Re: [OT] simpliest way to process this data file

2007-04-26 Thread Zhang Weiwu
An example that is probably not simple enough: awk 'BEGIN { FS=\n; RS=\n\n;} { print ; print $NF; for (i=1; iNF; i++) print $i;}' On Thu, 2007-04-26 at 11:18 +0800, Zhang Weiwu wrote: I know this is OT but we got so many sysops here and this might be something very easy for them to drop me

Re: [OT] simpliest way to process this data file

2007-04-26 Thread Jonathan McKeown
On Thursday 26 April 2007 08:51, Zhang Weiwu wrote: On Thu, 2007-04-26 at 11:18 +0800, Zhang Weiwu wrote: [snip] I have a data file formatted like this each block of data consist of several lines; blocks are separated by empty lines like this This is a block of

[OT] simpliest way to process this data file

2007-04-25 Thread Zhang Weiwu
I know this is OT but we got so many sysops here and this might be something very easy for them to drop me a quick answer? I have a data file formatted like this each block of data consist of several lines; blocks are separated by empty lines like this This is a block