Re: Manipulating file content

2000-07-02 Thread Viktor Rosenfeld
Will Trillich wrote: > i'd try something like (tmtowtdi): > > [Perl code snipped] This one worked perfectly right out of the box. With the added value that I can supply a seperator on the command line :) and the disadvantage that I have no clue, what the code is actually doing :( [1] Big thank

Re: Manipulating file content

2000-07-02 Thread Viktor Rosenfeld
Hello Bolan, Bolan Meek wrote: > Here's the replacement code, in a script, instead of a one-liner. > (I could've one-lined it, but this'll be more understandable: > look! I even added _comments_) > > [Perl code snipped] This works perfect, well, almost perfect. It inserts a space after each co

Re: Manipulating file content

2000-07-02 Thread Will Trillich
On Wed, Jun 28, 2000 at 02:37:33PM -0500, Bolan Meek wrote: > Viktor Rosenfeld wrote: > > > > Hi list, > > > > this one is for all the regexp, shell, and editing-experts... > > How about us perl hackers, hunh?! Got sumpin' g'inst us, buddy!? seems to me, us perl folk are the culmination of the

Re: Manipulating file content

2000-06-29 Thread Bolan Meek
Viktor Rosenfeld wrote: > > Bolan Meek wrote: > > > > this one is for all the regexp, shell, and editing-experts... > > > > How about us perl hackers, hunh?! Got sumpin' g'inst us, buddy!? Maybe I ought have said "perl slackers". (Well, I can get away with that since I resigned from PHADL). >

Re: Manipulating file content

2000-06-29 Thread Bolan Meek
Viktor Rosenfeld wrote: > > Bolan Meek wrote: > > > > this one is for all the regexp, shell, and editing-experts... > > > > How about us perl hackers, hunh?! Got sumpin' g'inst us, buddy!? > > Of course not! How could I?! :) Well, we members of the Perl Hackers Anti-Defamation League sometim

Re: Manipulating file content

2000-06-29 Thread Viktor Rosenfeld
Bolan Meek wrote: > > this one is for all the regexp, shell, and editing-experts... > > How about us perl hackers, hunh?! Got sumpin' g'inst us, buddy!? Of course not! How could I?! :) > Well, you could use regexp in sed, or use an awk script, but if > I had only 3x3 matrices to transform,

Re: Manipulating file content

2000-06-28 Thread Bolan Meek
Viktor Rosenfeld wrote: > > Hi list, > > this one is for all the regexp, shell, and editing-experts... How about us perl hackers, hunh?! Got sumpin' g'inst us, buddy!? > Suppose I have a comma-seperated or tab-seperated file and I want > to flip the lines and columns. So an input file like: >