This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Usage | |
# save the contents of this file to a executable file, | |
# call it, passing the target log file as first argument | |
# apapt the lines below for match your log file format | |
dates=("`date --date="-10 min" "+%_d %H:%M"`" \ | |
"`date --date="-9 min" "+%_d %H:%M"`" \ | |
"`date --date="-8 min" "+%_d %H:%M"`" \ |