Sort list of xlt files in Site Manager

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Sort list of xlt files in Site Manager

  • Creator
    Topic
  • #48479
    Jim Dafnis
    Participant

      Does anyone know how to sort them by name, have a long list and it would make life easier.

      😕

    Viewing 2 reply threads
    • Author
      Replies
      • #58741
        Kevin Scantlan
        Participant

          You’d think you shouldn’t have to sort them; that they’d already be in alphabetic order.  I agree… it’s a REAL hassle, especially if you have a good number and you have to search down through all of them to find the one you want.

        • #58742
          John Mercogliano
          Participant

            Regretfully, they don’t add sorting until 5.4.

            John Mercogliano
            Sentara Healthcare
            Hampton Roads, VA

          • #58743
            Nathan Martin
            Participant

              This is kind of an old topic, but I just found a solution and thought I’d share it.

              The issue is that Cloverleaf sometimes lists files in the raw order of the directory, not sorted by name like “ls”.  For fun, here is a one-liner to see those unsorted entries.

              Code:

              perl -e ‘opendir(DIR,”.”);print map {”$_n”} readdir(DIR)’

              In AIX, moving files from one directory to another is enough to alter the listings.  Here are some commands to temporarily sort the Xlates (according to your shell’s wild card expansion sequence).

              Code:

              cd $HCISITEDIR/Xlate
              mkdir SORTDIR
              mv *.xlt SORTDIR
              mv SORTDIR/* .
              rmdir SORTDIR


              Just be careful and don’t remove all your Xlates accidentally! 🙂

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.