ICode9

精准搜索请尝试: 精确搜索
  • gz文件压缩、解压缩保留源文件2022-01-07 18:02:28

    1、 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map root@DESKTOP-1N42TVH:/home/test2# gzip -c outcome.map > test.gz ## 压缩并保留源文件 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map test.gz   2、 root@DESKTOP-1N42TVH:/home/test2# ls outcome.map tes

  • linux 中删除当前目录下指定文件外所有的文件2022-01-06 23:34:23

    1、ls + grep + xargs  实现 a、 root@DESKTOP-1N42TVH:/home/test# touch test{1..10}.txt root@DESKTOP-1N42TVH:/home/test# touch abc{1..10}.csv root@DESKTOP-1N42TVH:/home/test# touch kk.map mn.ped root@DESKTOP-1N42TVH:/home/test# ls abc1.csv abc2.csv abc4.cs

  • linux 中实现按列的索引循环2022-01-06 23:00:10

    1、 root@DESKTOP-1N42TVH:/home/test# ls a.txt root@DESKTOP-1N42TVH:/home/test# cat a.txt i A Em F d q ddd M d e N ffff i A Em F d q ddd M d e N ffff root@DESKTOP-1N42TVH:/home/test# for i in $(seq `head -n 1 a.txt | awk '{print NF}'`); do echo $

  • linux awk命令统计多个文件的总行数2022-01-03 12:32:24

    1、测试数据 root@DESKTOP-1N42TVH:/home/test# ls test.txt test2.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@DESKTOP-1N42TVH:/home/test# cat test2.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@DESKTOP-1N42TVH:/hom

  • python中如何提取文件的前几行2022-01-03 01:03:10

    1、测试数据及脚本 root@DESKTOP-1N42TVH:/home/test# ls test.py test.txt root@DESKTOP-1N42TVH:/home/test# cat test.txt a 3 d s 1 j z c m q e i 3 4 k h f 3 root@DESKTOP-1N42TVH:/home/test# cat test.py fp=open("test.txt","r") file=open("re

  • linux系统中sort命令对字符数字组合字符串进行排序2022-01-02 12:03:47

    1、测试数据 root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9   2、排序 root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 root@DESKTOP-

  • 安装bedtools报错 cram/cram_io.c:57:10: fatal error: bzlib.h: No such file or directory2022-01-02 11:05:44

    1、执行make动作时出现如下问题 cram/cram_io.c:57:10: fatal error: bzlib.h: No such file or directory root@DESKTOP-1N42TVH:/home/software/bedtools2# ls LICENSE Makefile README.md bin data docs genomes obj scripts src test tutorial root@DESKTOP-1N42

  • ubuntu 编译报错 configure: error: You need zlib >= 1.2.3 to build bin/PopLDdecay2022-01-01 13:34:14

    1、内核版本 root@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /etc/issue Ubuntu 20.04.3 LTS \n \l root@DESKTOP-1N42TVH:/home/software/PopLDdecay# cat /proc/version Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有