GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Alfred M. Szmidt (amszmidt@mastodon.social)'s status on Tuesday, 26-Nov-2024 15:47:54 JST Alfred M. Szmidt Alfred M. Szmidt
    in reply to
    • 👾 Seher Taak 🐃
    • thomastc | frozenfractal

    @taak C-c C-q to enter writable dired. C-c C-c is for writing the changes back.

    @thomastc

    In conversation about 7 months ago from mastodon.social permalink
    • Embed this notice
      👾 Seher Taak 🐃 (taak@troet.cafe)'s status on Tuesday, 26-Nov-2024 15:47:56 JST 👾 Seher Taak 🐃 👾 Seher Taak 🐃
      in reply to
      • thomastc | frozenfractal

      @thomastc You can do it inside vim: https://vim.fandom.com/wiki/Bulk_rename_files_with_Vim

      But the emacs way is better: open the directory in dired, press c-c c-c, you're now in edit mode, that is, the buffer with the directory listing is now fully editable, apply any modifications, press c-c c-c again to save the buffer, thus renaming the files.

      Take a look: https://m.youtube.com/watch?v=Fm1K1crWKn8

      In conversation about 7 months ago permalink

      Attachments


      1. An Emacs "Killer Feature" Is Bulk Renaming
        from DistroTube
        One of the problems that will occasionally crop up from time to time on Linux is the need to do a bulk rename of files/directories. And there really aren't ...
    • Embed this notice
      thomastc | frozenfractal (thomastc@mastodon.gamedev.place)'s status on Tuesday, 26-Nov-2024 15:48:01 JST thomastc | frozenfractal thomastc | frozenfractal

      Is there a tool for the #Linux command line that helps me mass rename files *semi-manually*? I'm imagining something that lists the file names in my $EDITOR of choice, letting me edit them, and upon saving and exiting, applies the renames.

      For example: I have a sequence of files with 0-based indices, and I want to change it to 1-based indices. There aren't many files, so it's quicker to do this in vim than it is to write a script. But typing 20 "mv" commands, even with tab completion, is slow.

      In conversation about 7 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.