Skip to content

compare two comma separated strings and list the common values

How many I compare the two comma separated list (master and input) and list the common values among them (result) while preserving the order of elements in master list. For example: case1: case 2: case 3: This is what I tried: Answer Here is one awk-oneliner solution: Test with your 3 cases: Case 1 Case 2 Cas…

Sed/awk: Aligning words in a file

I have a file with the following structure: I want to add another item to the file, using sed or awk: etc. So my next item looks like this: The column values is jagged. How do I align my values to the left like for previous items? I can see 2 solutions here: To align the values while inserting them

Error building Tensorflow on CentOS 7

I am trying to compile Tensorflow (r1.3) on CentOS 7. My environment: gcc (g++) 7.20, bazel 0.5.3, python3 (with all necessary dependencies listed on tensorflow web site), swig 3.0.12, openjdk 8. Everything is installed in the users scope, without root access. Whenever I am trying to build a python package in…