DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th July 2022
victorvas victorvas is offline
Real Name: Victor
Linux
 
Join Date: May 2019
Posts: 148
Default convmv - convert file names

Hi. I've found a program that converts file and directory names to different encodings and also uppercase and lowercase. On OpenBSD 7.1:
Code:
doas pkg_add convmv-2.05
I used it to recursively convert all file names in Documents directory to lowercase.
Code:
convmv --notest --lower -r ~/Documents/
Reply With Quote
  #2   (View Single Post)  
Old 29th July 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

What happens if you have for example 'myCV.doc' and 'mycv,doc' in that directory?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 30th July 2022
victorvas victorvas is offline
Real Name: Victor
Linux
 
Join Date: May 2019
Posts: 148
Default

Quote:
Originally Posted by J65nko View Post
What happens if you have for example 'myCV.doc' and 'mycv,doc' in that directory?
An interesting question. If you run it without --notest flag, it will just tell you what will be done instead of doing it.
Code:
convmv --lower -r ~/Documents/
I used the directory 'TEST' with files 'myCV.doc' and 'mycv.doc', the output was:
Code:
$ convmv --lower -r TEST/
Starting a dry run without changes...
mv "TEST/myCV.doc"      "TEST/mycv.doc"
mycv.doc exists and differs or --replace option missing - skipped
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Case in file names stanl OpenBSD General 9 13th March 2020 08:01 AM
Dynamic DNS for Gandi.net domain names asemisldkfj Off-Topic 3 20th February 2013 03:01 AM
Problem with convert aleunix OpenBSD Packages and Ports 2 10th May 2012 01:52 PM
OpenBSD, pf.conf and user IDs / names PvSw1 OpenBSD General 0 7th February 2011 02:14 PM
Want to convert my server to raid revzalot OpenBSD Installation and Upgrading 2 16th September 2009 07:56 PM


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick