GithubHelp home page GithubHelp logo

file-renamer's Introduction

file-renamer

Description

In this repository contains scripts for renaming all files within a directory and every nested directory that contain a coma "," with an underscore "_". Only one script needs to be run depending on which source code is installed on your machine.

How to Use

If no source code is installed on your machine, install either Python or Go. One installed, complete the following steps:

  1. Clone this repository or download the file according the source code installed (Python or Go).

  2. Copy either comaReplace.py or comaReplace.go and paste it into the directory where the files need to be renamed. Note: this only needs to be done once at the parent directory.

  3. Using CMD, Terminal, or Bash, navigate to the directory where comaReplace.* was copied into. If you do not know what this is and you are on a Windows machine:

    1. Open the folder you copied the script to.
    2. Locate the address bar of the folder. It should located next to the search bar or back button.
    3. In the address bar, replace all the text with cmd and press enter.
    4. A new window should pop. This is Window's command line, CMD.
  4. Run the script in command line.

    If you have Python installed, run:

    python comaReplace.py
    

    If you have Go installed, run:

    go run comaReplace.go
    
  5. Every file with a coma within it's file name should now have the coma replaced with an underscore. Verify the renamed files.

To-do

This script would probably be more accessible if an executable was created. It would also be more powerful (or potentially dangerous) if users could pick which character or characters to be replaced.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.