Hi,

Am Dienstag, 16. Jun 2009, 09:09:09 -0400 schrieb Carmel NY:
> [...] It seems to work until I get to the copy part where it fails.
> 
> My scripting skills are not that good. Perhaps someone could tell me
> what I am doing wrong.
> 
> # copy the file to another directory using the base name
> cp $i /usr/home/tmp/$BN

Please provide the error message next time.

I guess the filenames contain spaces. Try

  cp "$i" "/usr/home/tmp/$BN"

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to