上一页 1 ··· 286 287 288 289 290 291 292 293 294 ··· 403 下一页
摘要: linux系统中pgrep用于查找进程 1、查找与命令相关的进程 [root@centos79 test]# pgrep sort [root@centos79 test]# 启动一个sort命令测试: [root@centos79 test]# seq -f test%03g 100000000| 阅读全文
posted @ 2021-07-21 13:16 小鲨鱼2018 阅读(207) 评论(0) 推荐(0)
摘要: c语言中显示各种数据类型的大小。 #include <stdio.h> int main(void) { //char type printf("char: %zd.\n\n", sizeof(char)); //integer type printf("short: %zd.\n", sizeof 阅读全文
posted @ 2021-07-20 22:56 小鲨鱼2018 阅读(354) 评论(0) 推荐(0)
摘要: c语言中浮点数的舍入错误。 1、 #include <stdio.h> int main(void) { float a, b; b = 2.0e20 + 1.0; a = b - 2.0e20; float c, d; d = 2.0e5 + 1.0; c = d - 2.0e5; printf( 阅读全文
posted @ 2021-07-20 22:06 小鲨鱼2018 阅读(218) 评论(0) 推荐(0)
摘要: 1、c语言中浮点值的上溢 #include <stdio.h> int main(void) { float test1 = 5.2e4 * 100.0f; float test2 = 5.2e40 * 100.0f; //超出float类型可以表示的范围。 printf("test1: %e.\n 阅读全文
posted @ 2021-07-20 22:00 小鲨鱼2018 阅读(368) 评论(0) 推荐(0)
摘要: c语言中打印浮点数。 #include <stdio.h> int main(void) { float f = 100.0; double d = 1.0e2; long double ld = 1.0e2; printf("float: %f.\n", f); printf("float: %e 阅读全文
posted @ 2021-07-19 23:48 小鲨鱼2018 阅读(2364) 评论(0) 推荐(0)
摘要: 1、测试文件 [root@centos79 test]# cat a.txt 3 5 6 s f s d g d e w f g e k [root@centos79 test]# cat b.txt 3 5 6 s f s d g d e w f g e k 2、直接使用diff [root@ce 阅读全文
posted @ 2021-07-19 00:33 小鲨鱼2018 阅读(166) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos79 test]# cat -A a.txt SUN08^ISUN09^ISUN10^M$ dddd^I33333^Icdddd^M$ dddd^I11111^I55555^M$ 2、dos2unix删除 [root@centos79 test]# cat a. 阅读全文
posted @ 2021-07-17 22:56 小鲨鱼2018 阅读(415) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、实现第一列和第三列的互换 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 阅读全文
posted @ 2021-07-17 14:42 小鲨鱼2018 阅读(999) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、删除第二列 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 test3] 阅读全文
posted @ 2021-07-17 14:37 小鲨鱼2018 阅读(13170) 评论(0) 推荐(0)
摘要: 1、测试数据 [root@centos79 test]# cat a.txt e t q t x g a w i k h e [root@centos79 test]# cat b.txt 4 5 6 2 d 2 s g y 2、将b.txt中的第2列用a.txt中的第3列进行替换 [root@ce 阅读全文
posted @ 2021-07-17 01:59 小鲨鱼2018 阅读(2356) 评论(0) 推荐(0)
上一页 1 ··· 286 287 288 289 290 291 292 293 294 ··· 403 下一页