I have a Text File formated like this. And i am using UNIX
for example:
192.168.178.65|connected 2/5/2017 192.168.178.93|connected 3/5/2017 ...
so basically it's always like this (random ip)|connected (random date) (random ip)|connected (random date) ...
How can i remove everything behind |connected so at the end it will looks like this
for example: 192.168.178.65 192.168.178.93
So that I only have the IP
(random ip) (random ip)
Thank you for your help
Aucun commentaire:
Enregistrer un commentaire