搜索结果
查询Tags标签: 1N42TVH,共有 26条记录-
linux 中实现数据的每一列都对齐
001、column -t实现root@DESKTOP-1N42TVH:/home/test6# ls xxx.genome root@DESKTOP-1N42TVH:/home/test6# cat xxx.genome ## 测试数据FID1 IID1 FID2 IID2 RT EZ Z0 Z1 Z2 PI_HAT PHE DST PPC RATIO5 5 7 7 UN NA 0.4331 …
2022/7/14 5:20:21 人评论 次浏览 -
linux 中awk命令实现字符串的精确匹配
001、root@DESKTOP-1N42TVH:/home/test3# ls test.txt root@DESKTOP-1N42TVH:/home/test3# cat test.txt ## 测试数据 AKCR02000001 df AKCR02000001 df AKCR02000001 er AKCR02000001.1 dg AKCR02000001.1 der AKCR02000001.1 fg AKCR02000001.2 ee AKCR0…
2022/7/9 5:20:25 人评论 次浏览 -
linux 中%.*、%%.*的意义
1、举例%.*的作用root@DESKTOP-1N42TVH:/home/test3# a="aa.bb.cc.dd" root@DESKTOP-1N42TVH:/home/test3# echo ${a} aa.bb.cc.dd root@DESKTOP-1N42TVH:/home/test3# echo ${a%.*} ## %.*的作用是删除变量最后一个.及其后的内容 aa.bb.cc root@DESKTOP-1N4…
2022/4/30 7:13:04 人评论 次浏览 -
R语言中利用optparse包给函数传递参数
1、root@DESKTOP-1N42TVH:/home/test2# ls a.txt test.r root@DESKTOP-1N42TVH:/home/test2# cat test.r #!/usr/bin/Rscript library(optparse)option_list <- list(make_option(c("-a", "--aa"), type = "character"),make_option(c(…
2022/4/28 23:43:04 人评论 次浏览 -
ubuntu中查看防火墙状态、关闭、开启防火墙
1、查看状态root@DESKTOP-1N42TVH:/home# ufw status ## 开启状态 Status: active 2、关闭防火墙root@DESKTOP-1N42TVH:/home# ufw disable Firewall stopped and disabled on system startuproot@DESKTOP-1N42TVH:/home# ufw status Status: inactive 3、启用防火…
2022/4/28 7:14:30 人评论 次浏览 -
linux 中调用shell脚本时指定工作目录为shell脚本所在的目录
1、root@DESKTOP-1N42TVH:/home/test# ls root@DESKTOP-1N42TVH:/home/test# ls /home/test2/* /home/test2/a.txt /home/test2/test.sh root@DESKTOP-1N42TVH:/home/test# cat /home/test2/test.sh ## shell脚本所在目录及内容 #!/bin/bash wc -l ./a.txt root@DESK…
2022/4/27 7:12:52 人评论 次浏览 -
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
1、问题 2、解决方法root@DESKTOP-1N42TVH:/home/test2# vim /etc/profile ## 在配置文件末尾追加如下两句 export XDG_RUNTIME_DIR=/usr/lib/ export RUNLEVEL=3 source一下:root@DESKTOP-1N42TVH:/home/test2# source /etc/profile 3、测试(刚才的问题解决)
2022/4/27 6:14:27 人评论 次浏览 -
linux 中 grep -q选项
1、linux 中 grep -q选项表示静默输出, 即不显式匹配结果root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt ## 测试数据 d e j s q u z c b root@DESKTOP-1N42TVH:/home/test2# grep "s" a.txt ## 直…
2022/4/25 7:13:11 人评论 次浏览 -
ubuntu: Network error: Connection refused
1、问题: Network error: Connection refused 2、解决方法root@DESKTOP-1N42TVH:~# /etc/init.d/ssh status* sshd is not running 3、root@DESKTOP-1N42TVH:~# /etc/init.d/ssh restart* Restarting OpenBSD Secure Shell server sshd …
2022/4/24 7:13:28 人评论 次浏览 -
linux中gzip解压文件并保留原始压缩文件
1、直接解压, 不保留原始文件root@DESKTOP-1N42TVH:/home/test# ls outcome.map.gz root@DESKTOP-1N42TVH:/home/test# gzip -d outcome.map.gz root@DESKTOP-1N42TVH:/home/test# ls outcome.map 2、解压并保留原始压缩文件root@DESKTOP-1N42TVH:/home/test# ls outcom…
2022/4/4 7:19:35 人评论 次浏览 -
linux中sed命令匹配特定字符之间的数据
1、测试数据root@DESKTOP-1N42TVH:/home/test3# ls a.txt root@DESKTOP-1N42TVH:/home/test3# cat a.txt ## 测试数据 01 02 AAA 03 04 05 BBB 06 07 08 CCC 09 10 2、匹配AAA到BBB之间的数据root@DESKTOP-1N42TVH:/home/test3# cat a.txt 01 02 AAA 03 04 05 BBB 06 0…
2022/4/4 7:19:32 人评论 次浏览 -
linux 中 awk NF的作用
1、删除空行root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt df gfdgdf gg erfd gg wwkkkk jjjj root@DESKTOP-1N42TVH:/home/test2# cat -A a.txt df gfdg$ $ df gg er$ ^I^I$ fd gg ww$^I^I$ kkkk jjjj$ root@DESKTOP-1N42TVH…
2022/4/4 7:19:31 人评论 次浏览 -
linux 中awk命令计算每行数据的和、平均数、最大值、最小值
1、测试数据root@DESKTOP-1N42TVH:/home/test2# ls a.txt root@DESKTOP-1N42TVH:/home/test2# cat a.txt 3 1 4 2 1 2 6 3 2 1 3 3 2、计算每行数据的和root@DESKTOP-1N42TVH:/home/test2# cat a.txt 3 1 4 2 1 2 6 3 2 1 3 3 root@DESKTOP-1N42TVH:/home/test2# awk {su…
2022/4/4 7:19:26 人评论 次浏览 -
linux 中实现每两列数据合并为一列数据
1、测试数据root@DESKTOP-1N42TVH:/home/test3# ls a.txt root@DESKTOP-1N42TVH:/home/test3# cat a.txt e t d u e i a d g g z j c b d e w l z c b h j h 2、形式1root@DESKTOP-1N42TVH:/home/test3# cat a.txt e t d u e i a d g g z j c b d e w l z c b h j h root…
2022/4/4 7:19:09 人评论 次浏览 -
linux中实现将连续的多列数据合并为一列数据
1、测试数据root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt 01 02 03 04 05 06 07 08 09 11 12 13 14 15 16 17 18 19 2、实现将连续的三列数据合并为一列数据root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:…
2022/1/9 7:05:29 人评论 次浏览