Reply To: Sort list of xlt files in Site Manager

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

#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! 🙂