Home > OS >  Bash: how to implement the string according to the specific separator into an array, and ignore the
Bash: how to implement the string according to the specific separator into an array, and ignore the

Time:09-16

For example, I had a string of 1, 2, 3, "Hello, world", 5 or 6
I want to put him into, [1, 2, 3, "Hello, world", 5, 6]
How do you achieve bash please?

I now is in the following way, but don't skip the double quotes separator...
Echo $target_string | tr, "" ""

CodePudding user response:

Your double quotes ", "USES the Chinese state comma ~ ~ ~ ~ ~
  • Related