crontab bash tests

Oliver Grawert ogra at ubuntu.com
Tue Sep 26 12:01:15 UTC 2023


hi,
Am Dienstag, dem 26.09.2023 um 13:32 +0200 schrieb Ralf Mardorf via
ubuntu-users:
> grep streaming > /dev/null

seeing this makes me always die a little inside ... there isĀ 

"grep -q <searchterm>"

that will properly return zero/non-zero when it finds a match and not
print anything, so neither [] nor >/dev/null are needed :)

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230926/ac52872b/attachment.sig>


More information about the ubuntu-users mailing list