Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3444688
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:56:49+00:00 2026-05-18T08:56:49+00:00

We are running subversion on a Linux server. Someone in our organization overwrote about

  • 0

We are running subversion on a Linux server. Someone in our organization overwrote about 3k files with mixed case when they need to all be lowercase.

This works in the CLI

rename 'y/A-Z/a-z/' *

But obviously will screw up subversion.

svn rename 'y/A-Z/a-z/' * 

Doesn’t work because subversion deals with renames differently I guess. So How can I do this as a batch job? I suck with CLI, so please explain it like I’m your parents. hand renaming all 3k files is not a task I wish to undertake.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:56:50+00:00Added an answer on May 18, 2026 at 8:56 am

    Create a little script svn-lowername.sh:

    #!/bin/bash
    # svn rename each supplied file with its lowercase
    for src; do
        dst="$(dirname "$src")/$(basename "$src" | tr '[A-Z]' '[a-z]')"
        [ "$src" = "$dst" ] || svn rename "$src" "$dst"
    done
    

    Make sure to chmod +x svn-lowername.sh. Then execute:

    How it works:

    1. Loop over each supplied filename.
    2. Basename part of filename is lowercased, directory part is left alone, using
      tr to do character by character translations. (If you need to support
      non-ASCII letters, you’ll need to make a more elaborate mapping.)
    3. If source and destination filenames are the same we’re okay, otherwise, svn rename. (You could use an if statement instead, but for one-liner
      conditionals using || is pretty idiomatic.)

    You can use this for all files in a directory:

    ./svn-lowername.sh *
    

    …or if you want to do it recursively:

    find -name .svn -prune -o -type f -print0 | xargs -0 ./svn-lowername.sh
    

    If you think this problem might happen again, stash svn-lowername.sh in your
    path somewhere (~/bin/ might be a good spot) and you can then lose the ./
    prefix when running it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one has me scratching my head. I'm running Subversion 1.3.1 (r19032) on Ubuntu.
Running a rails site right now using SQLite3. About once every 500 requests or
Running ipconfig /all shows a Teredo Tunneling Pseudo-Interface. What is that? Does this have
Running an ASP.Net website and using TinyMCE for content management. Users need to be
running git instaweb in my repository opens a page that says 403 Forbidden -
Running into a problem where on certain servers we get an error that the
Running FxCop on my code, I get this warning: Microsoft.Maintainability : 'FooBar.ctor is coupled
Running OS X Leopard an MacBook Pro from Jan. 2008. I used to run
Running a ServiceHost with a single contract is working fine like this: servicehost =
Running IIS5 (yes, really). I'd like to remove the eTag http header that IIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.