I need to grep all characters between second and third |
(pipe) character from a file.
Let's say we have a file with string like below (two lines):
abc123 | def123 | ghi123 | jkl123 | mno123
abc123 | def123 | jkl123 | ghi123 | mno123
After I use grep/sed/awk command I should get like
ghi123
jkl123
I would appreciate any clue or help.