P
P
parkito2016-05-31 23:37:42
linux
parkito, 2016-05-31 23:37:42

How to generate a mask for bash?

Hello. You need to create files like 01.log, 02.log, ... 10.log, 11.log, 12.log, 29.log, 30.log (days of the month). It is necessary to make sure that nothing deprivation is created. Broke my whole head. Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2016-06-01
@xotkot

$ touch {01..30}.log
To create a file with the number of the current day of the month:
If it is completely perverted and create files for the entire current month at once:
it only works under zsh, for bash it will need to be slightly modified.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question