Re: Slick or Slack



On May 29, 2:13 am, e p chandler <e...@xxxxxxxx> wrote:

It's not Fortran, but one of my favorite little ditties is this short
program in AWK:

{a[$0]++}END{for(i in a)print a[i],i}

Did you post it to http://slickorslack.com ? (You might have to ask
them to add AWK.)

Regards,
--
Bil Kleb
.



Relevant Pages

  • Re: Help! reformat the data file
    ... I thought mine was obvious enough that even a Fortran programmer ... (awk tends to be more C like than other ... Except if you exit from a BEGIN action, ... and it is a waste to generate all the separate fields if they aren't ...
    (comp.lang.fortran)
  • Re: Reading CSV files
    ... >>send my programs out for production use by a user who happens to be ... > of the people I know who use Fortran are writing scientific software ... > Awk is not problematic. ... Though I agree that some scripting language (and Awk is one of the ...
    (comp.lang.fortran)
  • Re: Help! reformat the data file
    ... there are many other languages which do it better than fortran, ... more lines of the code than in awk but you have ...
    (comp.lang.fortran)
  • Re: Help! reformat the data file
    ... I am sure that this can be done just fine in Fortran, ... other languages. ... When I need to do this, I usually use awk ... gets the job done faster than you can type the compile command for ...
    (comp.lang.fortran)
  • Re: Help! reformat the data file
    ... >> I have a data file needs to be reformatted. ... And I wrote a fortran program ... When I need to do this, I usually use awk ... > gets the job done faster than you can type the compile command for ...
    (comp.lang.fortran)