Mercurial > repo
view bin/bseen @ 9960:1d77e6be8fa6
<oerjan> learn Svalbard is the place where Norway keeps the Global Seed Vault, so that the world\'s PRNGs can be reseeded in case of a civilization-threatening disaster.
author | HackBot |
---|---|
date | Tue, 13 Dec 2016 00:59:32 +0000 |
parents | 7914d7e0b500 |
children |
line wrap: on
line source
#!/usr/bin/env bash s="<${1% }>" while ((i++ < 30)) && read -r file; do line= while read -r t n m; do [[ $n =~ $s ]] && line="$t $n $m"; done <"$file" [[ -n "$line" ]] && { printf '%s:%s\n' "${file##*/}" "$line"; exit; } done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt) echo 'well, not lately'