Answer the question
In order to leave comments, you need to log in
It is necessary to translate the lines into one line in bash, what is the best way?
Greetings gentlemen, there is a text:
[
"test_tag1",
"тэг_2",
"тэг_3",
"тэг_4"
]
Answer the question
In order to leave comments, you need to log in
Maybe
x=`cat $my_file | grep -v "\[" | grep -v "\]" | sed s/\"//g | awk -vORS= '{print $1}'`
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question