linux学习100篇63:wc统计文本

image.png
> root 07:07:52 ~/data
$ cat -n test.txt 
     1  > options()$repos 
     2                           CRAN 
     3  "https://cloud.r-project.org" 
     4  > options()$BioC_mirror
     5  NULL
     6  > #options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")
     7  > options(BioC_mirror="http://mirrors.tuna.tsinghua.edu.cn/bioconductor/")
     8  > options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
     9  > options()$repos 
    10                                          CRAN 
    11  "https://mirrors.tuna.tsinghua.edu.cn/CRAN/" 
    12  > options()$BioC_mirror
    13  [1] "http://mirrors.tuna.tsinghua.edu.cn/bioconductor/"
    14  > BiocManager::install("clusterProfiler")
    15  'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories'
    16  for details
    17  
    18  replacement repositories:
    19      CRAN: https://mirrors.tuna.tsinghua.edu.cn/CRAN/
    20  
    21  Bioconductor version 3.13 (BiocManager 1.30.15), R 4.1.0 (2021-05-18)
    22  Installation paths not writeable, unable to update packages
    23    path: /usr/lib/R/library
    24    packages:
    25      spatial
    26  Warning message:
    27  package(s) not installed when version(s) same as current; use `force = TRUE` to
    28    re-install: 'clusterProfiler' 
    29  > #BiocManager::install("clusterProfiler")
    30  > # BiocManager::install("org.Mm.eg.db")
    31  > # BiocManager::install("org.Hs.eg.db")
    32  > library("clusterProfiler")
    33  
    34  clusterProfiler v4.0.0  For help: https://guangchuangyu.github.io/software/clusterProfiler
    35  
    36  If you use clusterProfiler in published research, please cite:
    37  Guangchuang Yu, Li-Gen Wang, Yanyan Han, Qing-Yu He. clusterProfiler: an R package for comparing biological themes among gene clusters. OMICS: A Journal of Integrative Biology. 2012, 16(5):284-287.
    38  
    39  Attaching package: ??clusterProfiler??
    40  
    41  The following object is masked from ??package:stats??:
    42  
    43      filter
    44  
    45  > root 07:09:31 ~/data
$ wc test.txt 
  44  138 1705 test.txt
root 07:10:32 ~/data
root 07:10:32 ~/data
$ cat -n test.txt | wc
     44     183    2020
root 07:11:50 ~/data
$ cat -n test.txt | wc -l
44
root 07:12:09 ~/data

你可能感兴趣的:(linux学习100篇63:wc统计文本)