I have many log files generated like the bellow:
Date;Time;Brand;User;Node;Location
01/01/01;666;blabla;George Armani;Springfield
I want to delete the String Armani but my command is not working:
cat file.log | grep identifier | cut -d ";" -f | sort | uniq | grep -o '^\S*' > newfile.log
I'm following the next post
Is the another way to make it?
PS. There are strings in the same field with different length.
grep identifier
to your pipeline? – jesse_b Aug 08 '18 at 21:53;
delimiter that can be as simple assed 's/ [^;]*//' file.log
– steeldriver Aug 08 '18 at 21:56