Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] Working with Lists

Expand Messages
  • John Davidson
    Fantastic!! Thanks to all! For those who are interested, I played around with a un*x script to do the same: for i in `cat loc.txt | cut -d , -f2 | sort -u`
    Message 1 of 6 , Aug 7, 2000
    • 0 Attachment
      Fantastic!! Thanks to all!

      For those who are interested, I played around with a un*x script to do the
      same:

      for i in `cat loc.txt | cut -d',' -f2 | sort -u`
      do
      echo "$i,\c" >> op
      for j in `cat loc.txt | grep $i | cut -d',' -f1`
      do
      echo "$j,\c" >> op
      done
      echo >> op
      done

      I must put more effort into learning Perl :-)


      John
    Your message has been successfully submitted and would be delivered to recipients shortly.