Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mass rename files inside archive #101

Open
skyhirider opened this issue Mar 21, 2025 · 3 comments
Open

Mass rename files inside archive #101

skyhirider opened this issue Mar 21, 2025 · 3 comments

Comments

@skyhirider
Copy link

7zip supports the rn command that can rename files if you provide pairs of old new.

If you need to rename an archive with tens of thousands of files however, this solution is not scalable as terminals have a limited number of characters.

Would it be possible for the command to consume a file with a list of pairs that would be used for the rename operation?

@ip7z
Copy link
Owner

ip7z commented Mar 22, 2025

The list file supports file name pairs for rename command.
Just write each name in new line. You need two lines per one rename pair.

@skyhirider
Copy link
Author

Will this work if I have one million files or more?

@ip7z
Copy link
Owner

ip7z commented Mar 23, 2025

You can try it.
But maybe it will be slow for some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants