Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Extract a list of username and e-mail adress

2005-04-22
2012-09-15
  • I need to extract a list of usernames and e-mail adresses from my YaWPS site.

    Since the site containts over 1000 profiles I can`nt do it manually.

    Any suggestions?

     
    • P. García
      P. García
      2005-04-22

      Use de folowing scrpit (in tcsh) at .../cgi-bin/db/members/:

      !/bin/tcsh

      foreach a (*.dat)
      if (($a != "membergroups.dat") && ($a != "memberlist.dat")) then
      head -2 $a | tail -1 >> /tmp/users.dat
      head -3 $a | tail -1 >> /tmp/emails.dat
      endif
      end

      paste /tmp/users.dat /tmp/emails.dat
      rm /tmp/users.dat /tmp/emails.dat