随笔分类 - linux shell
摘要:1、测试数据 [root@centos79 test]# cat reads.list sample01 /home/test/sample01 /home/test/sample01_2.fq.gz sample02 /home/test/sample02 /home/test/sample02_
阅读全文
摘要:1、测试数据 [root@centos79 test]# ls a.txt b.txt [root@centos79 test]# cat a.txt e k [root@centos79 test]# cat b.txt e r t d f 3 s g k i e x d f g 2、以a.txt
阅读全文
摘要:1、$RANDON, 产生的随机数的范围是0~32767 [root@centos79 test]# echo $RANDOM 6420 [root@centos79 test]# echo $RANDOM 1799 2、产生20个1-100的随机数 [root@centos79 test]# fo
阅读全文
摘要:1、查看系统 [root@rhel8pc1 test]# hostnamectl Static hostname: rhel8pc1 Icon name: computer-vm Chassis: vm Machine ID: 73f2da100acd48f8891e11d2a3d353ab Boo
阅读全文
摘要:linux系统中scp命令实现服务器之间数据的传输 1、从本地服务器传输至另一台服务器 测试服务器连通性: [root@centos79 test]# ifconfig | head -n 3 ## 查看本机服务器ip ens32: flags=4163<UP,BROADCAST,RUNNING,M
阅读全文
摘要:1、测试数据 [root@centos7 test]# cat a.txt 1 2 3 4 5 6 7 8 9 2、 数字的作用相当于print? [root@centos7 test]# cat a.txt 1 2 3 4 5 6 7 8 9 [root@centos7 test]# awk '{
阅读全文
摘要:1、查看系统 [root@centos8pc2 network-scripts]# hostnamectl Static hostname: centos8pc2 Icon name: computer-vm Chassis: vm Machine ID: f021cde3a91b4a2688dbe
阅读全文
摘要:1、测试数据 [root@centos79 test]# ls [root@centos79 test]# mkdir test1 [root@centos79 test]# touch test1/a.txt [root@centos79 test]# ll total 0 drwxr-xr-x.
阅读全文
摘要:1、测试数据 [root@centos79 test]# cat a.txt e r w i s g n c w d h x 2、awk [root@centos79 test]# cat a.txt e r w i s g n c w d h x [root@centos79 test]# awk
阅读全文
摘要:1、测试数据 [root@centos79 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 2、生成中间文件,假设4行为一列 [root@centos79 test]# cat a.txt 01
阅读全文
摘要:1、测试数据 [root@centos79 test]# cat a.txt e t c i w s g g d z c i o n m 2、转换为一行 [root@centos79 test]# cat a.txt e t c i w s g g d z c i o n m [root@cento
阅读全文
摘要:1、测试数据 [root@centos79 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
阅读全文
摘要:1、测试数据 [root@centos79 test]# cat a.txt 3 f k i s d g k z v m x e 5 8 y 2、xargs [root@centos79 test]# cat a.txt 3 f k i s d g k z v m x e 5 8 y [root@c
阅读全文
摘要:1、测试数据 [root@centos79 test]# cat a.txt 3 s g a e f k n y 2、xargs [root@centos79 test]# cat a.txt 3 s g a e f k n y [root@centos79 test]# cat a.txt | x
阅读全文
摘要:1、问题 [root@centos79 test]# unlzma test_chr22.tar.lzma bash: unlzma: command not found... 2、 [root@centos79 test]# yum install -y lzma Loaded plugins:
阅读全文
摘要:1、测试数据 [root@PC3 test]# cat a.txt e r e y e u e e e g e 3 h r 1 3 e g e y e e s e e e e e e t s t e s r d g e s w t e [root@PC3 test]# cat c.txt 1 x r
阅读全文
摘要:1、测试数据 [root@PC3 test]# cat a.txt e r e y e u e e e g e 3 h r 1 3 e g e y e e s e e e e e e t s t e s r d g e s w t e [root@PC3 test]# cat b.txt 1 3 5
阅读全文
摘要:1、测试数据 [root@PC3 test]# cat a.txt e r e y e u e e e g e 3 h r 1 3 e g e y e e s e e e e e 2、将3-5列中的e替换为x [root@PC3 test]# cat a.txt e r e y e u e e e
阅读全文
摘要:1、测试数据 [root@PC3 test]# cat a.txt e r e y e u e e e g e 3 h r 1 3 e g e y e e s e e e e e 2、将每行的第3个e即其后的e替换为x [root@PC3 test]# cat a.txt e r e y e u e
阅读全文
摘要:1、测试数据 [root@PC3 test]# cat a.txt e r t y d a d g 4 3 1 3 d g k 2、awk实现 [root@PC3 test]# cat a.txt e r t y d a d g 4 3 1 3 d g k [root@PC3 test]# awk
阅读全文

浙公网安备 33010602011771号