From d43ace73ccd03cdf9101721268ad58367120fa4f Mon Sep 17 00:00:00 2001 From: Spirillen Date: Mon, 16 Oct 2023 06:30:03 +0200 Subject: [PATCH] sort by domain? working or? --- .github/workflows/master.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 7ba34acea729..cedfef4a79be 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -41,12 +41,12 @@ jobs: - name: 'Sort our lists for doublets and order by alphabet' run: | - find "${{ github.workspace }}/source/" -mindepth 1 -maxdepth 2 \ - -type f -name '*.list' -exec bash -c "sort -i -u -f '{}' \ - -o '{}' " \; - # find "${{ github.workspace }}/source/" -type f -name '*.list' -exec \ - # awk -F "." '{for(i=NF; i > 1; i--) printf "%s.", $i; print $1}' "{}" | \ - # sort -u | awk -F "." '{for(i=NF; i > 1; i--) printf "%s.", $i; print $1}' + # find "${{ github.workspace }}/source/" -mindepth 1 -maxdepth 2 \ + # -type f -name '*.list' -exec bash -c "sort -i -u -f '{}' \ + # -o '{}' " \; + find "${{ github.workspace }}/source/" -type f -name '*.list' -exec \ + awk -F "." '{for(i=NF; i > 1; i--) printf "%s.", $i; print $1}' "{}" | \ + sort -u | awk -F "." '{for(i=NF; i > 1; i--) printf "%s.", $i; print $1}' - name: 'Sort our rpz-nsdname for doublets and order by alphabet' run: |