Git Product home page Git Product logo

Comments (5)

Solomon1732 avatar Solomon1732 commented on July 17, 2024

I'm curious as to why it should be added. Are there any sanitization problems caused by such names?

Writing such names is standard behavior in various Linux distributions.
Here are a few examples:

  1. tar generates files such as foo.tar.gz, foo.tar.xz, and so forth.
  2. renaming foo.log into foo.log.2 or foo.log.old is standard procedure.

From a short look in the FreeBSD man page of the tar utility, the same behavior is displayed:
https://www.freebsd.org/cgi/man.cgi?query=tar&apropos=0&sektion=0&manpath=FreeBSD+11.1-RELEASE+and+Ports&arch=default&format=html

Even the windows graphic file manager such (re)naming is allowed, and it's a stickler for naming conventions.

from detox.

uzsolt avatar uzsolt commented on July 17, 2024

The reason is simple: I don't like the many dots in filenames. I like filename_without_any_dot.extension.

from detox.

Solomon1732 avatar Solomon1732 commented on July 17, 2024

@dharple , is it possible to use custom sequence for such s task?

To me it seems more fitting to add such a sequence instead of adding such a functionality, especially since as a user I personally prefer the program not to make cosmetic decisions for me.

from detox.

dharple avatar dharple commented on July 17, 2024

Hi,

It's been a while, but I don't recall adding functionality for this. The "." in UNIX has special meaning. Might I suggest the utility called "rename" instead? It supports regular expressions, and you should be able to match on the last period and replace all others.

Cheers

from detox.

uzsolt avatar uzsolt commented on July 17, 2024

Sad :( I know the rename package and I use it. But would be easier use only one tool (detox) instead two tools.
Thanks for your work!

from detox.

Related Issues (20)

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.