Help! Need "File exist check" and line count

view story

http://www.unix.com – Hello, I've been stuck with this for a few days now :wall:, so I'm hoping someone out there might be kind enough to help me. I need to do a "file exist" check with a variable in the file name. After that I need to do a line count on the file, and output its results to a txt file. For simplicity/compliance reasons, I have simplified all my paths and file names. Also the txt file has already been created, hence the ">>" instead of ">" Right now I'm getting a "bad substitute" error for the first line "if [ -f "/path/File_${CUR_D (HowTos)