Input
$ cat input.txt
345 "cuad" "dfr"
23 "test3" "dfec2
"v1"
33 v2
v3"
32 "key3" "fer"
12 "rte" "ef"
Goal, I would like to replace the newline with a space only if the next line not starts with number and tab
345 "cuad" "dfr"
23 "test3" "dfec2 "v1" 33 v2 v3"
32 "key3" "fer"
12 "rte" "ef"
trying this bash command to remove new lines if condition on the next line is met but I can't adapt it to my needs
Attempt, it doesn't work
$ perl -0777 -pe 's/\n(?=[^0-9]+\t)/ /g' input.txt