Hi All,
My file
cat file
" test1 test1 "
" test1 test1
test1 test1"
"test1 test1
test1 test1
test1 test1 "
How to achieve this
i want the result:
cat file
test1 test1
test1 test1 test1 test1
test1 test1 test1 test1 test1 test1
Hi All,
My file
cat file
" test1 test1 "
" test1 test1
test1 test1"
"test1 test1
test1 test1
test1 test1 "
How to achieve this
i want the result:
cat file
test1 test1
test1 test1 test1 test1
test1 test1 test1 test1 test1 test1
Any attempts / ideas / thoughts from your side?
No sir in shell scripts, but im working on notepad++ with regular expression
find: [^"]*"([^"]+)"[^"]*
replace: \1
I can get the pattern between the two quotes but I cant make it in one line.
One option:
awk '{while (!/"$/) {getline X; $0 = $0 " " X}; gsub (/ *" */, _)} 1' file
test1 test1
test1 test1 test1 test1
test1 test1 test1 test1 test1 test1
or
sed '{:L; N; $!bL;}; s/\n/ /g; s/ *\(" *\)\+/\n/g; s/^\n\|\n$//g; ' file
test1 test1
test1 test1 test1 test1
test1 test1 test1 test1 test1 test1
Thanks a lot Sir, This is working