摘要: 多进程 macname@MacdeMacBook-Pro Desktop % macname@MacdeMacBook-Pro Desktop % macname@MacdeMacBook-Pro Desktop % python3 test.py main test 0 test 0 test 1 阅读全文
posted @ 2020-12-01 22:25 anobscureretreat 阅读(107) 评论(0) 推荐(0)
摘要: sed编辑器不会修改原始文件。你删除的行只是从sed编辑器的输出中消失了。原始文件仍然包含那些“删掉的”行 macname@localhost Desktop % cat data1 1The quick brown fox jumps over the lazy dog 2The quick br 阅读全文
posted @ 2020-12-01 14:12 anobscureretreat 阅读(839) 评论(0) 推荐(0)
摘要: content macname@localhost Desktop % macname@localhost Desktop % cat ddd This is a test of the test script. This is the second test of the test script. 阅读全文
posted @ 2020-12-01 13:58 anobscureretreat 阅读(1484) 评论(0) 推荐(0)
摘要: 用at命令在预设时间安排脚本执行非常好用,但如果你需要脚本在每天的同一时间运行或是 每周一次、每月一次呢?用不着再使用at不断提交作业了,你可以利用Linux系统的另一个功能。 Linux系统使用cron程序来安排要定期执行的作业。cron程序会在后台运行并检查一个特殊的表(被称作cron时间表), 阅读全文
posted @ 2020-12-01 10:22 anobscureretreat 阅读(229) 评论(0) 推荐(0)