The Archives

  • 16.Feb.09
    Perl for accents and spaces in html hrefs automated, scripts, shell | pfortuny | (0)
    Despite the title looking like spam, it uses all the relevant keywords in a problem which I guess is more common than it looks like, especially in non-English speaking countries. I had created (automatically, not by hand) a set of html, pdf and rtf files of the 477 items of a regional catalogue of industrial estate (sorry, no references because it belongs to other people and they have not published it yet). Then I made the index.html page listing and linking to all those files. It looked like a list of lines like the following one (notice that what follows looks ...
  • 12.Dec.08
    awk specifying the field separator cmd, scripts | pfortuny | (1)
    $ awk -F'=| ' '{print $3}' < code.pl Prints the third field in each line of regr_FF, using the regexp '=| ' as the field separator (FS). The example regexp means "either an equal sign or a space'.