On Thu, 30 Aug 2012 21:44:04 -0400
"John L. Cunningham" wrote:
> Hi Daniel,
>
> Here's my awk solution:
> [snip]
Very nice, this should be added as an example to an awk-learning
document :)
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trou
As usual, I obviously screwed up the indexes...
> 10 DAT(IDX)=VAL
< 10 DAT(IDX+1)=VAL
> WRITE(2,*), i, DAT(i)
< WRITE(2,*), i-1, DAT(i)
Le vendredi 31 août 2012 à 20:00 +0200, Gaël DONVAL a écrit :
> I have to learn fortran.
> I just thought this was
Le vendredi 31 août 2012 à 08:21 -0700, daniel jimenez a écrit :
> as before, the file is from an experimenter who chose the format
> arbitrarily (maybe the photon counter outputs that, no clue [dont
> really care]) and Im doing this as a favor.
Maybe this experimenter should ask for a program alt
I didnt mean to say this was oo programming, only that my background is in
strictly scientific computing using structured programming in c and
fortran. this rarely requires doing any formating work on lines such as
this...
as before, the file is from an experimenter who chose the format
arbitraril
Le vendredi 31 août 2012 à 09:48 -0400, Miles Fidelman a écrit :
> For going through a file, line-by-line, and massaging the format, my
> first instinct would be sed. That's what it's intended for.
Actually, I did not read the whole thread (shame on me) prior to
answering. I think what is really
Gaël DONVAL wrote:
Le vendredi 31 août 2012 à 09:46 +0100, Jon Dowland a écrit :
On Fri, Aug 31, 2012 at 02:18:15AM +, Mark Blakeney wrote:
On Fri, 31 Aug 2012 01:31:29 +, Russell L. Harris wrote:
This exercise provides the impetus to learn to use a very useful tool,
namely Perl.
I wo
Le vendredi 31 août 2012 à 09:46 +0100, Jon Dowland a écrit :
> On Fri, Aug 31, 2012 at 02:18:15AM +, Mark Blakeney wrote:
> > On Fri, 31 Aug 2012 01:31:29 +, Russell L. Harris wrote:
> > > This exercise provides the impetus to learn to use a very useful tool,
> > > namely Perl.
> >
> > I
read ignore
read ignore
index=-1
while read line; do
set -- $line
index=$((index + 1))
if [ $index != "$1" ]; then
while [ $(($1 - $index)) -gt 0 ]; do
echo $index 0
index=$((index + 1))
done
fi
index="$1"
[ "$index" -le 1024 ] || break
second=1
shift
[ $# -le
On Fri, Aug 31, 2012 at 02:18:15AM +, Mark Blakeney wrote:
> On Fri, 31 Aug 2012 01:31:29 +, Russell L. Harris wrote:
> > This exercise provides the impetus to learn to use a very useful tool,
> > namely Perl.
>
> I would suggest python is a much better choice to a young person
> just star
Le Ven 31 août 2012 6:42, daniel jimenez a écrit :
> Hello guys,
>
>
> @richard,
>
>
> 1 this is not homework, a friend asked me to do some statistics on an
> experimental dataset he got for his masters thesis and the file was
> already that way.
>
> 2 i'm well versed in fortran, this problem howev
Hello guys,
@richard,
1 this is not homework, a friend asked me to do some statistics on an
experimental dataset he got for his masters thesis and the file was already
that way.
2 i'm well versed in fortran, this problem however is not what i'm used to.
I thought about reading the line bare in c
On Friday 31,August,2012 11:22 AM, Richard Owlett wrote:
> lina wrote:
>> On Friday 31,August,2012 08:35 AM, Richard Owlett wrote:
>>> daniel jimenez apparently described a *HOMEWORK* problem:
Hello all,
I need some help fixing the format of some pretty strangely
compressed data
lina wrote:
On Friday 31,August,2012 08:35 AM, Richard Owlett wrote:
daniel jimenez apparently described a *HOMEWORK* problem:
Hello all,
I need some help fixing the format of some pretty strangely
compressed data files. An example would be like this:
2883
452
07
16
2
4
6
107
Parsing rules:
On Friday 31,August,2012 08:35 AM, Richard Owlett wrote:
> daniel jimenez apparently described a *HOMEWORK* problem:
>> Hello all,
>>
>> I need some help fixing the format of some pretty strangely
>> compressed data files. An example would be like this:
>>
>> 2883
>> 452
>> 07
>> 16
>> 2
>> 4
>> 6
On Fri, 31 Aug 2012 01:31:29 +, Russell L. Harris wrote:
> This exercise provides the impetus to learn to use a very useful tool,
> namely Perl.
I would suggest python is a much better choice to a young person
just starting out.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.o
On Thu, Aug 30, 2012 at 04:37:19PM -0700, daniel jimenez wrote:
>Hello all,
>I need some help fixing the format of some pretty strangely compressed
>data files. An example would be like this:
>
>2883
>452
>0 7
>1 6
>2
>4
>6
>10 7
>Parsing rules:
>
* Richard Owlett [120831 00:39]:
> daniel jimenez apparently described a *HOMEWORK* problem:
...
> >I need some help fixing the format of some pretty strangely
> >compressed data files. An example would be like this:
This exercise provides the impetus to learn to use a very useful tool,
namely Pe
daniel jimenez apparently described a *HOMEWORK* problem:
Hello all,
I need some help fixing the format of some pretty strangely
compressed data files. An example would be like this:
2883
452
07
16
2
4
6
107
Parsing rules:
The first two lines should be ignored.
The first column is the 'index',
Hello all,
I need some help fixing the format of some pretty strangely compressed data
files. An example would be like this:
2883
452
0 7
1 6
2
4
6
10 7
Parsing rules:
The first two lines should be ignored.
The first column is the 'index', the second column being the 'counter'.
If there is no se
19 matches
Mail list logo