07 2024 档案
摘要:001、在linux中如果程序正常执行,则返回0,错误执行返回非0值 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt sf ab 35 34543 [root@PC1 test]# grep "a" a.txt ab [root@PC1 te
阅读全文
摘要:001、输出整型数据,直接输出 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int main(void) { printf("[%d]\n", 123); return 0; } [root@PC
阅读全文
摘要:001、 测试 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int main(void) { int i = 10; double j = 5.8; printf("i + j = %f\n",
阅读全文
摘要:001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int i; printf("i = "); scanf("%d", &i); //读取和输
阅读全文
摘要:001、 给int型变量赋值double型数据 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int i; i = 8.583; printf("i
阅读全文
摘要:001、 %f输出int型数据,其值为0. [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { int i = 10; printf("i = %f\n"
阅读全文
摘要:001、if 结构 002、if else结构 003、if else if elseif else结构 004、条件判断结构 005、switch结构 。
阅读全文
摘要:001、for [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序,for循环语句 #include <stdio.h> int main(void) { int i; for(i = 1; i <= 5; i++) { pr
阅读全文
摘要:001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c // 测试程序 #include <stdio.h> int main(void) { int i = 10; printf("i1 = %d\n", i); printf("i2
阅读全文
摘要:这种问题存在于PATH 和 要加载的路径中存在相同的环境变量名,而起作用的是前者的环境变量 001、 a、如果PATH+ 路径中存在同名环境变量, 路径中环境变量生效。 b、如果路径 + PATH中存在相同的环境变量,路径中的环境变量生效。
阅读全文
摘要:001、环境变量混乱出现如下问题 [root@PC1 ~]# ls ## 基本命令调不起来 bash: ls: command not found... Similar command is: 'lz' [root@PC1 ~]# vim ~/.bashrc ## vim编辑器也调不起来 bash:
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 >Sequence1 CCCNTCACTNNNCTTGGNNNNNNNNN >Sequence2 [root@PC1 test]# sed 's/NNN\+//g' a
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据,三列数据 324324 aeddeef uukkiikk sssfee ffeeeww eeffzzdd zzzves ggeessa jjxxddqq aaeekk
阅读全文
摘要:001、 find ./ -type f -name "*fasta" -size +100M -size -200M ## 查找文件类型未文件; 名称未最后几个字符fasta, 文件的大小大于100M, 小于200M 。
阅读全文
摘要:001、 计量资料 T检验; 计数资料 卡方检验; reference: 01、https://zhuanlan.zhihu.com/p/42803826
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt 33 aa 44 aa 88 aa 33 aa ff kk 33 aa 88 22 mm 88 33 44 22 99 [root@PC1 test]# sed '2 s/.*/\n&
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数 aa bbb dd ff 77 dd 22 44 77 88 cc dd ee ff [root@PC1 test]# sed -n '/dd/p' a.txt ## 输
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 aa 33 aa 77 bb aa aa 22 aa kk cc bb dd aa uu 88 33 88 rr qq [root@PC1 test]# grep -o
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 aa bbbbbb cc bb ww xx yy zz dd jj kk mm ss [root@PC1 test]# awk '{sub("b+", "Q"); pr
阅读全文
摘要:001、Linux awk中如何删除数组 (base) [b20223040323@admin2 test]$ cut -f 5-6 rt288_2_3.bim | paste - <(cut -f 5-6 yt4_2_3.bim ) | head C A 0 A T C C T C A C A A
阅读全文
摘要:001、单行注释 // 002、多行注释 /* ......*/
阅读全文
摘要:001、 -P选项表示 perl正则兼容 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 01 02 03 04 05 中国农副业 06 07 河南 08 09 10 [root@PC1 test]# cat a.txt |
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 01 02 03 04 05 中国农副业 06 07 河南 08 09 10 [root@PC1 test]# cat a.txt | grep -P '[\x{4e0
阅读全文
摘要:001、grep命令报错如下 [root@PC1 test]# echo "你好世界" | grep -P '[\u4e00-\u9fff]+' grep: PCRE does not support \L, \l, \N{name}, \U, or \u 002、解决方法(把U改为x;同时中间用中
阅读全文
摘要:https://www.ebi.ac.uk/ena/browser/home 002、 测试下载 ascp -vQT -l 500m -P33001 -k 1 -i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.eb
阅读全文