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 7776937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:00:27+00:00 2026-06-01T18:00:27+00:00

I got a folder (lets say it’s name is ../TEMPO ) with many folders

  • 0

I got a folder (lets say it’s name is ../TEMPO) with many folders inside [A,B,C..Z] on a linux machine.
Each folder has 3 more levels of folders. Some of the deeper folders are with lowercase name, Example:

A/F/m/O
Z/t/q/S

In the 4th level there are files which i would like to keep with the same name as it is now.

How can I rename just the folders name to uppercase recursively without changing the files name exists in a specific folder (../TEMPO)?

  • 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-06-01T18:00:29+00:00Added an answer on June 1, 2026 at 6:00 pm

    Verify the output of this command

    find path/to/dir -type d | awk -F"/" '$NF != toupper($NF) {l = n = $0; sub($NF "$", toupper($NF), n); print "mv " l " " n;}' | tac
    

    and if it looks fine, execute the results by piping the results to sh

    find path/to/dir -type d | awk -F"/" '$NF != toupper($NF) {l = n = $0; sub($NF "$", toupper($NF), n); print "mv " l " " n;}' | tac | sh
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say i got millions of files seperated into subfolders in a folder and
I've got main folder: c:\test And there I have 2 folders: Movies and Photos.
I've got a couple large checkouts where the .svn folder has become damaged so
Let's say I've got a folder in my project with bunch of png files
Lets assume i got 3 .flv files in a folder. How can i create
I have got following folder structure for my domain (domain.com): /data/images (it´s subdomain name,
I've got a folder in linux, which is contained several shared object files (*.so).
I have got a folder with many excel documents in it on tomcat and
I have a folder with many images with different backgrounds. I have got requirement
I've got a folder of images which is reaching a critical mass after a

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.