while read line + cd trouble?

view full story

http://www.linuxquestions.org – Okay, so I have two problems here: cd "$line" returns "No such file or directory" (e.g. ./brbooks: line 32: cd: Wetland Plants: No such file or directory, even though I know it is there and can see it..) The file $ls_file has Books ($ls_file) as the first line for some reason Basically I have some files named ch1.pdf, ch2.pdf, ch3.pdf, etc. in different folders and I want to rename them to Chapter 1.pdf, Chapter 2.pdf, Chapter 3.pdf, etc. If you need more information, please ask, and sorry if this is (HowTos)