Skip to main content
added 86 characters in body
Source Link
Noah
  • 966
  • 8
  • 7

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.

Source Link
Noah
  • 966
  • 8
  • 7

In bash, just use something like alertcommand | grep $(date +"%m/%d")

$() executes the command in a subshell and returns the output of the command