美文网首页
cmd文本编辑与查看

cmd文本编辑与查看

作者: 嗒嘀嗒嗒嘀嗒嘀嘀 | 来源:发表于2020-04-10 23:53 被阅读0次
    • echo显示文本
    • >>>重定向到指定文件
    • type查看文件文本内容
    # 用echo.xxx  >将内容重定向到 .Rprofile文件
    >echo.options(BioC_mirror='https://mirrors.tuna.tsinghua.edu.cn/bioconductor') > .Rprofile
    # 用echo.xxx >>将内容追加到文件下一行
    >echo.utils::setRepositories(ind=1:2) >> .Rprofile
    # 用echo. >>加入空行
    >echo. >> .Rprofile
    # 用echo xxx >>将文本不换行直接追加到后面
    >echo options(repos = c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) >> .Rprofile
    # 查看写入的内容
    >type .Rprofile
    options(BioC_mirror='https://mirrors.tuna.tsinghua.edu.cn/bioconductor')
    utils::setRepositories(ind=1:2)
    
    options(repos = c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
    
    • more查看文件前几行,q退出

    -参考文章
    windows cmd编辑文本

    相关文章

      网友评论

          本文标题:cmd文本编辑与查看

          本文链接:https://www.haomeiwen.com/subject/zwhiphtx.html