- #1
leon1127
- 486
- 0
Hello. I am writing a programme that changes the names of files in the linux directory. More specifically I have transferred a lot of files from windows directory which contains a lot of spaces and special characters that can get annoying in linux, so I am trying to write a programme to replace all the spaces and special character into _.
I tried to look up reference in C but most of them just talking about now to do that in the content of files but not the name of the file. Does anyone have an idea how to do it?
I will appreciate any comment.
Leon
I tried to look up reference in C but most of them just talking about now to do that in the content of files but not the name of the file. Does anyone have an idea how to do it?
I will appreciate any comment.
Leon