Date: Tue, 16 Jun 2009 15:56:15 +0200 From: Bertram Scharpf <lists@bertram-scharpf.de> To: freebsd-questions@freebsd.org Subject: Re: Problem with bash script Message-ID: <20090616135615.GA18052@marge.bs.l> In-Reply-To: <BLU0-SMTP586D9F12148D0B6683B635933F0@phx.gbl> References: <BLU0-SMTP586D9F12148D0B6683B635933F0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090616135615.GA18052>