detox command - ignore double dashes

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Post Reply
dormantgp
Level 1
Level 1
Posts: 4
Joined: Tue Dec 26, 2023 10:52 am

detox command - ignore double dashes

Post by dormantgp »

Can I use the detox command to change file names, but tell it not to change any double-dashes in the filename?

I think it can be done in ~/detoxrc, but I can't get my head around the syntax.
Shiva
Level 3
Level 3
Posts: 141
Joined: Thu Jul 07, 2022 11:25 am

Re: detox command - ignore double dashes

Post by Shiva »

dormantgp wrote: Sat Jan 06, 2024 2:11 pm Can I use the detox command to change file names, but tell it not to change any double-dashes in the filename?

I think it can be done in ~/detoxrc, but I can't get my head around the syntax.
Hoping this time I correctly understood that both dashes are consecutive :wink: ,
wouldn't the detox command accept a piping through :

Code: Select all

find . -type f ! -name '*--*'
Post Reply

Return to “Scripts & Bash”