Awesome q2a theme

How to merge rows using grep\\sed one?

0 like 0 dislike
38 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 | 38 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