Search results

  1. M

    How to replace spaces with in Square brackets using sed command

    IT does not seem that this is adding the quotes, and it kind of acts weird in other places, For Example, in likes that looks like this: "Risk R-EX-2": "R-EX-2" it turns them into : "Risk R-EX-2": "R-EX-2",: ["NFO-PS-6"], I am not sure where that section came from!!! Do you know if this is...
  2. M

    How to replace spaces with in Square brackets using sed command

    I am actually trying to replace the spaces with "," This includes the quotes, I Am trying to add them with escape chars in the sed part of your code, but its would not add them still
  3. M

    How to replace spaces with in Square brackets using sed command

    Wow, Thanks SlowCoder, I appreciate you trying to help me with this. I Will try that and play with it and see if I can do anything as well from my side <3
  4. M

    How to replace spaces with in Square brackets using sed command

    Another approach would be replacing any spaces after the column, space and an opening bracket. ": [", if any space is found after these 3 characters it would be changed to "," not sure if this can help find a solution using sed.
  5. M

    How to replace spaces with in Square brackets using sed command

    Gotcha, Thank you so much for trying to help though :)
  6. M

    How to replace spaces with in Square brackets using sed command

    Thank you, this seems to be working to some extent, but also its adding the comma in all spaces, not only between the brackets: example output: ,,,,,,,,,,,,"NIST 800-161,rev,1,Level,2": ["SI-20"], ,,,,,,,,,,,,"NIST 800-161,rev,1,Level,3": ["SI-20"], ,,,,,,,,,,,,"NIST Privacy,Framework,v1.0"...
  7. M

    How to replace spaces with in Square brackets using sed command

    I tried these: sed -e :1 -e 's/\(\[[^]]*\)[[:space:]]/\",\"/g;t1' sed '/\[/,/]/{s/[ /]/\",\"/g}' sed '/NIST.*:/s/\ /",\"/g' but they seemed to replace all spaces regardless where they are in the line.
  8. M

    How to replace spaces with in Square brackets using sed command

    Hello, I am trying to replace spaces in brackes with "," for example: "NIST 800-171A": ["3.11.2[a] 3.11.2 3.11.2[c] 3.11.2[d] 3.11.2[e] 3.11.3[a] 3.11.3"], Will be: "NIST 800-171A": ["3.11.2[a]","3.11.2","3.11.2[c]","3.11.2[d]","3.11.2[e]","3.11.3[a]","3.11.3"], There are...
Top