DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th December 2015
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default [solved] special character problem

Hello

i have a .mp4 file which i will convert to .mp3 but i can't escape the characters at the beginning

~ _ Notis Sfakianakis ~ Dose ena telos-uAGmYjSm_i8.mp4

i hope someone can help me

Last edited by kerasi; 20th January 2016 at 07:39 PM. Reason: my question was solved thats why i typed solved
Reply With Quote
  #2   (View Single Post)  
Old 7th December 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,985
Default

If the filename is as you've posted, all you should need to do is surround the filename in double-quote characters. For example:
Code:
$ mv "~ _ Notis Sfakianakis ~ Dose ena telos-uAGmYjSm_i8.mp4" my.video.mp4
If the file has non-printable characters in the name, you may be able to address it with wildcards:
Code:
$ mv *i8.mp4 my.video.mp4
If both methods fail, you can manually rename the file to ASCII characters with fsdb(8).
Reply With Quote
  #3   (View Single Post)  
Old 7th December 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,985
Default If you must use fsdb(8)...

... be sure to read its manual. Here is an example of using its chname subcommand to rename a file.

I have created this simple filesystem, containing the directory structure path/to/directory and the innermost directory, directory holds two files: "a.file" and the file I wish to change, "bad.file".
Code:
$ ls -R
path

./path:
to

./path/to:
directory

./path/to/directory:
a.file   bad.file
This happens to be a filesystem I created for the example: vnd0a. Here's what the change steps look like, starting with the character (raw) device node, and an unmounted filesystem.
Code:
# fsdb -f /dev/rvnd0a
** /dev/rvnd0a
** File system is already clean
Editing file system `/dev/rvnd0a'
Last mounted on /mnt
current inode: directory
I=2 MODE=40755 SIZE=512
.
.
.
OWNER=root GRP=wheel LINKCNT=3 FLAGS=0 BLKCNT=4 GEN=eac5a82a
fsdb (inum: 2)> cd /path/to/directory
.
.
.
component `directory': current inode: directory
I=642 MODE=40755 SIZE=512
.
.
.
OWNER=root GRP=wheel LINKCNT=2 FLAGS=0 BLKCNT=4 GEN=9408be79
fsdb (inum: 642)> ls
slot 0 ino 642 reclen 12: directory, `.'
slot 1 ino 641 reclen 12: directory, `..'
slot 2 ino 643 reclen 16, regular, `a.file'
slot 3 ino 643 reclen 472: regular, `bad.file'
fsdb (inum: 642)>  chname 3 good.file
fsdb (inum: 642)> ls
slot 0 ino 642 reclen 12: directory, `.'
slot 1 ino 641 reclen 12: directory, `..'
slot 2 ino 643 reclen 16, regular, `a.file'
slot 3 ino 643 reclen 472: regular, `good.file'
fsdb (inum: 642)> quit
*** FILE SYSTEM MARKED DIRTY
*** BE SURE TO RUN FSCK TO CLEAN UP ANY DAMAGE
*** IF IT WAS MOUNTED, RE-MOUNT WITH  -u -o reload
#

Last edited by jggimi; 7th December 2015 at 06:46 PM. Reason: typo
Reply With Quote
  #4   (View Single Post)  
Old 31st December 2015
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default

Hello :-)

Thank you very very much jggimi it works :-)

mv *i8.mp4 my.video.mp4

i wish all of you a happy new year

Tasos
Reply With Quote
Reply


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
special characters missing? Franciscus NetBSD Installation and Upgrading 2 6th June 2013 09:05 AM
HOWTO: ISO-8859-1 Character Set on NetBSD JMJ_coder Guides 0 25th February 2009 12:53 AM
Big5 Character Set in Apache problem after upgrade to 6.4 paul-lkw FreeBSD Installation and Upgrading 0 23rd February 2009 09:20 AM
postgresql chinese character problem gosha OpenBSD Packages and Ports 2 8th June 2008 09:37 PM


All times are GMT. The time now is 02:57 PM.


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