• @jaybone
    link
    323 months ago

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

      • @datelmd5sum
        link
        73 months ago

        cat pipeing is safer though.

        foobar > file and your file is gone.

        • @Trail
          link
          23 months ago

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

          • @[email protected]
            link
            fedilink
            43 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
            link
            fedilink
            English
            23 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
      link
      fedilink
      English
      53 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!