正在发声 | 中文Lemmy社区
  • 社群
  • 发帖
  • 创建社群
  • heart
    支持Lemmy
  • search
    搜索
  • 登录
  • 注册
majestictechie@lemmy.fosshost.com 发于 Linux@lemmy.mlEnglish · 2 年前

How dare you use a text editor because it's easy to use

lemmy.fosshost.com

message-square
323
link
fedilink
799

How dare you use a text editor because it's easy to use

lemmy.fosshost.com

majestictechie@lemmy.fosshost.com 发于 Linux@lemmy.mlEnglish · 2 年前
message-square
323
link
fedilink
  • jaybone@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    2 年前

    You noobs. I just use combinations of cat piped to sed to edit my files, which are mainly lisp code.

    • lemmesay@discuss.tchncs.de已被作者删除
      link
      fedilink
      arrow-up
      20
      ·
      2 年前

      • datelmd5sum@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        2 年前

        cat pipeing is safer though.

        foobar > file and your file is gone.

        • wise_pancake@lemmy.ca
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          You can always alias > to < in your shell.

          • fossphi@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 年前

            Get out!

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 年前

        <file foobar

        • Trail@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          Huh does that actually work? Don’t have a system handy to try it out.

          • lemmesay@discuss.tchncs.de已被作者删除
            link
            fedilink
            arrow-up
            4
            ·
            2 年前

            showing the output in termux

            storage/documents/programs ro
            > echo puts "hello world" > main.rb
            
            storage/documents/programs ro via rb
            > ls
            c  js  main.rb  python
            
            storage/documents/programs ro via rb
            > < main.rb grep hello
            puts hello world
            
            storage/documents/programs ro via rb
            >
            
          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 年前

            I think so! I think it’s something like < file works anywhere in the line, not just the end. There may be some specifics about no space when it is the front but I don’t remember lol.

    • Wren@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 年前

      Amateur! I write my code down on a piece of paper, scan it in, send it to my computer through email, then make a custom-built AI read the paper and print it in the terminal!

      • thevoidzero@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        2 年前

        M-x M-c butterfly

        • Sundray@lemmus.org
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          1
          ·
          2 年前

          Link.

Linux@lemmy.ml

linux@lemmy.ml

从外站实例订阅

发帖
您尚未登录。但是您可以使用 Lemmy 或 Mastodon 等其他联邦宇宙帐户进行订阅。为此,请将以下内容粘贴到您所在实例的搜索框中:[email protected]

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

可见性: 公开
globe

该社群可以联合到其他实例,并允许其它实例的用户发贴/评论。

  • 732 用户 / 日
  • 2.04K 用户 / 周
  • 5.22K 用户 / 月
  • 12.4K 用户 / 6 月
  • 1 本站订阅者
  • 69K 订阅者
  • 6.79K 条帖子
  • 134K 评论
  • 管理记录
  • 社群管理:
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz已被作者删除
  • BE: 0.19.21
  • 管理记录
  • 条款
  • 实例
  • 文档
  • 代码
  • join-lemmy.org