Quote:
Originally Posted by schneidz
Code:
[schneidz@hyper ~]$ date +Y"-hello world-"%j
2015-hello world-136
|
Code:
mike@continuity7:~$ date +Y"-hello world-"%j
Y-hello world-137
mike@continuity7:~$ date +%Y"-hello world-"%j
2015-hello world-137
mike@continuity7:~$
But that's a string mixed in with bits of the date and example OP gives of desired output
Code:
Sun May 17 01:08:28 BRT 2015 something start
which is date followed by a string.
Code:
mike@continuity7:~$ date "+%Y %j hello world"
2015 137 hello world
mike@continuity7:~$
is closer, but you'd have to specify all the date components
Code:
mike@continuity7:~$ echo "$(date) something start"
Sun 17 May 12:19:29 BST 2015 something start
mike@continuity7:~$