[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

suppress date() error messages?

From: Peter Buck
Subject: suppress date() error messages?
Date: Tue, 23 Apr 2019 08:59:59 -0400

I have data that I know will contain a few bad dates. I want to
suppress the error messages.  Redirection isn't working.  Is there
anything I can do?

coreutils version 8.28-1ubuntu1 on Ubuntu 18.04.2 LTS

$ x=$(date --date="bad" +%s) > /dev/null 2>&1 
date: invalid date ‘bad’

reply via email to

[Prev in Thread] Current Thread [Next in Thread]