Changed grep -v against $logfile to throw out lines with control characters.
[backups/.git] / scripts / files-from-date.sh
1 #!/bin/sh
2
3 [ $# == 1 ] || exit 1
4
5 awk 'BEGIN { RS="\0" } { d=$7; sub( /^([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])/, "" ); if ( date == d ) printf "%s\0",$0 }' date=$1