Questions tagged [permutations]
6 questions
3
votes
3 answers
Permutations in Bash (Combinations of IDs/Tokens)
I do not believe this is true permutations, as I do not want a combination of IDs duplicated in a different order.
I have a lists of 1 to x IDs:
List #1: 1001 1002 1003 1004
List #2: 1002 1004 1005
List #3: 1001 1003 1006
List #4: 1002 1003 1005…
MSF004
- 295
- 4
- 9
3
votes
5 answers
All possible permutations of words in different files in pairs
I have multiple files, let's say file1, file2 etc. Each file has one word in each line, like:
file1 file2 file3
one four six
two five
three
What I want is to combine them in a new file4 in every possible permutation (without repetition) in…
mpla_mpla
- 143
- 1
- 4
2
votes
3 answers
Check for permutation using awk
My problem is to determine via shell script if certain strings are permutations of each other e.g.
1.Nf3 c5 2.e4 Nc6
1.e4 c5 2.Nf3 Nc6
As you can see the permutation is based on atomic substrings. So in other words, I want to know if both strings…
Hölderlin
- 1,160
- 5
- 14
- 34
2
votes
1 answer
Better Solution for Finding ID Groups (Permutations/Combinations)
My goal for this question is to find a more efficient solution to accomplish a task.
I have a file containing rows of IDs, e.g.:
1001 1004 1005 1010 1006 1020 1002
1002 1005 1006
1001 1010 1020 1043 1009 1016 1011 1012 1013
1010 1020 1030 1050 1004…
MSF004
- 295
- 4
- 9
0
votes
3 answers
Two arrays in nested for loop over ssh lead to unwanted connection-user permutations
I am trying to update some files on 3 nodes, where I want to combine every connection with a specific user path. As I am very new to this, I extended a for loop I used to connect as root, into a nested for loop with 2 different arrays.
The following…
0
votes
1 answer
Getting values of a variable which have letter, numbers and symbols in linux
How can I get all the different values of x where all the values are in this format
x=326F4333-54F1-4B2A-550C-FBFD3145C59F
So there is no specific sequence for the numbers or the letters. But the pattern is fixed as per the following:
8 letters…