Skip to content

Instantly share code, notes, and snippets.

@Codehunter-py
Created March 27, 2022 17:30
Show Gist options
  • Save Codehunter-py/bee9ffdadedf0ec615acfcf7f72c716a to your computer and use it in GitHub Desktop.
Save Codehunter-py/bee9ffdadedf0ec615acfcf7f72c716a to your computer and use it in GitHub Desktop.
We're using the same syslog, and we want to display the date, time, and process id that's inside the square brackets. We can read each line of the syslog and pass the contents to the show_time_of_pid function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment