Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 9 个月前

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

lemmy.fosshost.com

message-square
325
fedilink
789

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

lemmy.fosshost.com

majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 9 个月前
message-square
325
fedilink
  • jaybone@lemmy.world
    link
    fedilink
    arrow-up
    32
    ·
    9 个月前

    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
      ·
      9 个月前

      • datelmd5sum@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        9 个月前

        cat pipeing is safer though.

        foobar > file and your file is gone.

        • wise_pancake@lemmy.ca
          link
          fedilink
          arrow-up
          2
          ·
          9 个月前

          You can always alias > to < in your shell.

          • fossphi@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 个月前

            Get out!

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        9 个月前

        <file foobar

        • Trail@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          9 个月前

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

          • lemmesay@discuss.tchncs.de
            link
            fedilink
            arrow-up
            4
            ·
            9 个月前

            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
            ·
            9 个月前

            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
      5
      ·
      9 个月前

      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
        6
        ·
        9 个月前

        M-x M-c butterfly

        • Sundray@lemmus.org
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          9 个月前

          Link.

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 965 users / day
  • 2.42K users / week
  • 6.85K users / month
  • 16.5K users / 6 months
  • 2 local subscribers
  • 54.8K subscribers
  • 7.79K Posts
  • 202K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org