New answers tagged date
date is not a bash builtin. It is a system utility and that is something on which OSX and Linux differ. OSX uses BSD tools while Linux uses GNU tools. They are similar but not the same. As you have found, on OSX, the -d flag to date controls daylight savings time whereas on Linux, it sets the display time. On OSX, -v adjusts the display date but, on ...
My very own dateutils provide a command-line tool dadd which goes through a text file and adds something to every date found: $ dadd -S +1d FILE PROCESS DATE =2014-08-02
csh/tcsh has the best support for this feature (and has always had it). The `time` shell variable can be set to execute the time builtin command after the completion of any process that takes more than a given number of CPU seconds. In other words, set time=1 will print out the time consumed (system, user, elapsed) by any command that took more ...
Another option: date `ssh username@host date "+%m%d%H%M%H.%S"` Remember to put your ~/.ssh/id_rsa.pub contents in user@host's .ssh/authorized_keys file.
Top 50 recent answers are included