I am trying to achieve something similar in the rundeck 2.6 task:
touch /foo/bar/${DATE:MM/dd/yyyy}-baz
but it does not work properly and the date is not interpreted at all. Is there any way to do this?
You can use this bash script:
#!/bin/bash touch /foo/bar/`date "+%m/%d/%Y"`-baz
Backquotes act as a substitute for teams and replace the output datein a team touch.
date
touch
According to the date page :
"" (+ +) , . , strftime (3), .
:
% m ( 01 12). ( tm_mon.)% d ( 01 31). ( tm_mday.)% Y , . ( tm_year)
, . . :
<option name="date" value="${DATE:MM/dd/yyyy}-baz" />
${option.date}.
Source: https://habr.com/ru/post/1664563/More articles:Is it possible to display figures behind series / graphs? - chartsDrop Shadow effect in a universal Windows application - c #Tensorflow, difference between tf.nn.softmax_cross_entropy_with_logits and tf.nn.sparse_softmax_cross_entropy_with_logits - tensorflowWhy is the begin-next-end behavior different in ruby and jruby? - ruby | fooobar.com.net Portable Class Library содержит Microsoft.VisualBasic как зависимость - .netAngular2 user request - androidWhat is the best alternative for the following situation? - postgresqlHow to convert String to Math Function only once? - javascriptCSS - How to auto-navigate by color on a page when loading a page - htmlHow to install third-party software with an electron? - electronAll Articles