R
R
Rag'n' Code Man2021-10-22 13:47:33
bash
Rag'n' Code Man, 2021-10-22 13:47:33

How to shove the output of one command into the arguments of another?

I need something like this:

mv DB.dump DB.{date +%d.%m.%y}.dump

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-10-22
@iDmitriyWinX

mv DB.dump "DB.`date +%d.%m.%y`.dump"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question