I am trying to make a 4x4 matrix and I would greatly appreciate any help.
I have 4 text files and I want to do the following. I want to concatenate them and gzip them. Then I want to find the file size of the concatenated file and subtract the value of file A. Finally, I want to output this final value onto the matrix. I think the example will hopefully make more sense
Example: Suppose there is text A and text B
- Concatenate them to make AB
- Gzip AB to create AB.gzip
- File size of AB.gzip MINUS file size of AB
- Print the final value on the matrix
Repeat this until AB,AC,AD; BA,BC,BD; CA,CB,CD; DA,DB,DC is created.
Output should be a matrix:
A B C D
A
B
C
D
EDIT: I'm going to make a 40x40 matrix which would require 1560 outputs. I made this example 4x4 for simplicity purposes