
希望用 shell 循环输出下面这样的内容。
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Example</title> </head> <body> <div> <time>2020-10-01 07:46:13</time> <p>text01</p> </div> <div> <time>2020-10-02 07:46:13</time> <p>text02</p> </div> ... </body> </html>
其中有两个值需要循环输出:时间(按日递增),编号(从 01 递增),然后输出 100 个
有没有大佬可以用 shell 实现?先谢谢了!
1 jdhao 2020-10-17 10:43:52 +08:00 via Android for 循环?设定日期变量,自己查一下 bash 语法,写出来不就得了 |
2 linvaux 2020-10-17 10:47:53 +08:00 via iPhone 字符串拼接而已,不很简单么 |
3 Tumblr 2020-10-17 10:57:13 +08:00 |
4 hcymk2 2020-10-17 11:26:21 +08:00 |
5 parad 2020-10-17 11:30:59 +08:00 via Android XY? |
7 itechify PRO |
8 LUREN OP @oneisall8955 谢谢,已经解决了。 |