I want to use cut to parse syslog messages from Cisco devices
the message seams like this:
1 10.28.63.12 49948: Sep 25 07:36:16: %LINK-3-UPDOWN: Interface GigabitEthernet0/7, changed state to up
I used this to get IP address and mnemonic
cat syslog | grep -f 2,7 -d ' '
but it displays nothing. I think, there is a problem with the separator character, because if I cut and paste the line to a different file, it works.
Is there a way how to get the separator?