$ jq -c -n -f Permutations_by_swapping.jq [1,["a","b","c"]] [-1,["a","c","b"]] [1,["c","a","b"]] [-1,["c","b","a"]] [1,["b","c","a"]] [-1,["b","a","c"]] "There are 32 permutations of 5 items."