摘要: 1、基本用法,直接运行date 显示系统当前时间 [root@linuxprobe test]# date Mon Oct 5 20:03:00 CST 2020 2、以特定格式输出,如“年-月-日 时:分:秒” [root@linuxprobe test]# date "+%Y-%m-%d %H: 阅读全文
posted @ 2020-10-05 20:42 小鲨鱼2018 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1、准备测试数据 [root@linuxprobe test]# ls test.map test.ped [root@linuxprobe test]# wc -l * ## 46827个位点,60个样本 46827 test.map 60 test.ped 46887 total [root@l 阅读全文
posted @ 2020-10-05 16:49 小鲨鱼2018 阅读(4998) 评论(0) 推荐(0) 编辑
摘要: 1、创建测试数据 [root@linuxprobe test]# echo "aaa.bbb.ccc.ddd" > a.txt [root@linuxprobe test]# cat a.txt aaa.bbb.ccc.ddd 2、利用\进行转义,使转义字符仍为字符串 [root@linuxprob 阅读全文
posted @ 2020-10-05 13:32 小鲨鱼2018 阅读(16050) 评论(0) 推荐(0) 编辑
摘要: 1、简单用法,直接加数字 [root@linuxprobe test]# seq 10 ## 输出1到10列表 1 2 3 4 5 6 7 8 9 10 2、设置起点、终点 [root@linuxprobe test]# seq 5 10 ##设置起点为5,终点为10,默认的步长为1。 5 6 7 阅读全文
posted @ 2020-10-05 12:47 小鲨鱼2018 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 1、*比较常用的通配符,表示匹配任意长度的任意字符 创建测试数据: [root@linuxprobe test]# touch {1..3}.txt {1..3}.csv {1..3}.xxx ## 利用touch常见空文件 [root@linuxprobe test]# ls 1.csv 1.tx 阅读全文
posted @ 2020-10-05 11:13 小鲨鱼2018 阅读(4222) 评论(0) 推荐(0) 编辑