I recently responded to a similar question of yours here:
Shell script to search for text in a file and copy file
Code:
#!/bin/sh
case $# in 0|1) echo "syntax: $0 date files ..." >&2; exit 2;; esac
date=$1
shift
awk -v d="$date" '$0 ~ d' "$@"
This expects the date as the first parameter, and a list of files as the remaining parameters. Those are passed through to awk in "$@" after the first argument (the date) has been shifted off and passed to the awk script as a variable.
I took out the { print } because that is the default action; this is probably less readable, so if you don't use awk much, it might be safer to leave it in.
Of course, this simple script is exactly equivalent to
grep without any options or other bells & whistles.