Hi everyone,
I try to use the terminal for multiple renaming. For this I got a script from someone and it goes like this:
for F in $(find *.pdf); do mv ${F} $(echo ${F} | sed s/pdf/txt/); done
it searches for all pdf files and changes them to txt files.
However, it does not work for files containing a space character. Here the container F (is this called a container btw.??) separates the input from the find command into single words. The foldername "hello world" would be separated in "hello" and "world".
My question is: how can this be inhibit?
Thanks in advance
Jakob
Bookmarks