How to merge rows using grep\\sed one?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
24 views
Tell me how you can combine into one string and can it be done using grep\\sed.
1 a text file of strings in this format
Stroka, cheslea, number, number
Strokab, cheslea, number, number

Number, number, Strokab, cislab
Number, number, Stroka, cislab

It is necessary to bring to mind:
Stroka, cheslea, cislab
Strokab, cheslea, cislab
by | 24 views

2 Answers

0 like 0 dislike
join-t , -j 1 \\ <(sed 's/\\([^,]*,[^,]*\\).*/\\1/g' < 1.txt | sort) \\ <(sed 's/[^,]*,[^,]*,//g' < 2.txt | sort)
by
0 like 0 dislike
You need to handle openvpn-status.log.
Need from the first part of the log to take the name and date and time of client connection, and the second part of the virtual ip address of the client.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
asked May 3, 2019 by Nikit_adw
0 like 0 dislike
1 answer
asked Apr 22, 2019 by elisey474
0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
110,608 questions
257,187 answers
0 comments
40,796 users