time.sh
#!/bin/bash
time=$(date +%Y%m%d%H%M)
echo aaa > file_name_$time
ok
(参考) https://atmarkit.itmedia.co.jp/flinux/rensai/linuxtips/240datefilename.html
Go to list of users who liked
More than 1 year has passed since last update.
#!/bin/bash
time=$(date +%Y%m%d%H%M)
echo aaa > file_name_$time
ok
(参考) https://atmarkit.itmedia.co.jp/flinux/rensai/linuxtips/240datefilename.html
Register as a new user and use Qiita more conveniently
Go to list of users who liked