Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In bash, just use something like alertcommand | grep $(date +"%m/%d")
$() executes thea command in a subshell and returns the output of the command as string. Alternatively you can enclose the command with backticks to the same effect.
In bash, just use something like alertcommand | grep $(date +"%m/%d")
$() executes the command in a subshell and returns the output of the command
In bash, just use something like alertcommand | grep $(date +"%m/%d")
$() executes a command in a subshell and returns the output of the command as string. Alternatively you can enclose the command with backticks to the same effect.