Here is my sample file
cat test.txt
"IND WEB",
"Speed Web (Internal webserver)",
"Web Bill",
I tried the below two solutions to convert multiline to single line however the double quotes "
are lost !!
cat listofapps.txt | xargs -s 8192
IND WEB, Speed Web (Internal webserver), Web Bill,
tr '\n' < listofapps.txt
IND WEB, Speed Web (Internal webserver), Web Bill,
Can you please suggest so that the double quotes remain ?
tr '\n' < listofapps.txt
isn't a valid command for example - did you meantr -d '\n' < listofapps.txt
?) – steeldriver Feb 22 '21 at 15:06xargs
because quotes are special toxargs
Why does xargs strip quotes from input? – αғsнιη Feb 22 '21 at 15:11tr -d '\n' < listofapps.txt
works !! thank you. I was missing the-d
– Ashar Feb 22 '21 at 15:11