kata33
1
Hello,
I have a text file(utf8-bom). I want convert to following format. Thank you.
1***hello 35345 test test666
test 77 ? - test666
6//77
2***ktest 765
3***john6666 net 565433
nebb
I want this format.
1***hello 35345 test test666 test 77 ? - test666 6//77
2***ktest 765
3***john6666 net 565433 nebb
yazu
2
Try:
perl -0777 -ne 's/\s+/ /g;
print "$_\n" for /\d\*\*\*.*?(?=\d\*\*\*|$)/msg' FILE
kata33
3
Thank you code works. but only outputs are between 1***-9***
I have the format.
1***j76j67
k87k
30***6h6
543***h6h6
9743***h6h6
16344***h66
yazu
4
perl -0777 -ne 's/\s+/ /g;
print "$_\n" for /\d+\*\*\*.*?(?=\d+\*\*\*|$)/msg' FILE