Timeline for bash shellscript for loop two variables with input from two files
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 15, 2018 at 19:19 | comment | added | neha dhawan | The first line of file1 will be compared to only first line of file2 . Second line of file1 with only second line of file2 and so on.. so the number of lines should be only the number of lines present in file2, which sums up to 3 | |
| Dec 15, 2018 at 19:10 | comment | added | RudiC | If I understand correctly, ALL freemem entries in file1 are greater than ALL usedmem entries in file2. So - should the output have 16 * 3 = 48 lines reporting all VMs to be relocatable? | |
| Dec 15, 2018 at 15:28 | answer | added | David | timeline score: 0 | |
| Dec 15, 2018 at 15:16 | comment | added | neha dhawan | formatted code as well and have rewritten bits as suggested | |
| Dec 15, 2018 at 15:16 | history | edited | Valentin Bajrami | CC BY-SA 4.0 | added 131 characters in body |
| Dec 15, 2018 at 15:15 | comment | added | neha dhawan | I need to compare usedmem(column5)from file2 with free memory(column4) from file1. If free memory(column4) from file1 is greater than usedmem(column5)from file2. The output should be VM(column2) from file2 can be relocated to storage(column1) in file1. | |
| Dec 15, 2018 at 15:15 | history | edited | neha dhawan | CC BY-SA 4.0 | added 204 characters in body |
| Dec 15, 2018 at 15:09 | comment | added | nohillside | Also please explain (in words) the logic applied to combine both files in order to create the output. | |
| Dec 15, 2018 at 15:06 | comment | added | ilkkachu | please, take a look at the editing help, especially the first point about code block formatting. Then take some time to edit the formatting of your post to make the question more readable. Also, there's no need to use shorthand for words like "output" (which I suppose you mean with "o/p"). The bits are cheap enough to spell it out, and the question is more understandable without uncommon abbreviations. | |
| Dec 15, 2018 at 15:02 | history | edited | ilkkachu | edited tags | |
| Dec 15, 2018 at 14:59 | history | edited | Rui F Ribeiro | CC BY-SA 4.0 | deleted 8 characters in body |
| Dec 15, 2018 at 14:35 | history | asked | neha dhawan | CC BY-SA 4.0 |