okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 8 months ago

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

lemmy.fosshost.com

message-square
328
fedilink
791

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

lemmy.fosshost.com

majestictechie@lemmy.fosshost.com to Linux@lemmy.mlEnglish · 8 months ago
message-square
328
fedilink
  • jaybone@lemmy.world
    link
    fedilink
    arrow-up
    32
    ·
    8 months ago

    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
      ·
      8 months ago

      • datelmd5sum@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        8 months ago

        cat pipeing is safer though.

        foobar > file and your file is gone.

        • wise_pancake@lemmy.ca
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

          You can always alias > to < in your shell.

          • fossphi@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 months ago

            Get out!

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        edit-2
        8 months ago

        <file foobar

        • Trail@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

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

          • lemmesay@discuss.tchncs.de
            link
            fedilink
            arrow-up
            4
            ·
            8 months ago

            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
            ·
            8 months ago

            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
      ·
      8 months ago

      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
        ·
        8 months ago

        M-x M-c butterfly

        • Sundray@lemmus.org
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          8 months ago

          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: !linux@lemmy.ml

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

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

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.

  • 1.11K users / day
  • 4.05K users / week
  • 7.98K users / month
  • 17K users / 6 months
  • 1 local subscriber
  • 54K subscribers
  • 4.8K Posts
  • 105K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org