0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

shell timestamp 付きファイル作成

Last updated at Posted at 2022-07-13
time.sh
#!/bin/bash

time=$(date +%Y%m%d%H%M)
echo aaa > file_name_$time

ok

Screenshot from 2022-07-13 16-11-45.png

(参考) https://atmarkit.itmedia.co.jp/flinux/rensai/linuxtips/240datefilename.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?