On Thu, 1 Feb 2001, Ben Maughan wrote:
> Hello all,
> I've just been trying to use the get_rproj script, and have encountered
> a bug that seems really obvious. The lines
>
> mv $srcreg /tmp/${padcnt}.regs
> cp /tmp/b.regsb /tmp/${padcnt}.regsb
>
> don't work for me because the line
>
> padcnt=`printf "%03s" $count`
>
> introduces spaces into the variable, as can be seen by echoing the line
> mv $srcreg /tmp/${padcnt}.regs
> which gives,
> mv /tmp/srcag /tmp/ 7.regs
>
> This is easily solved by ammending the padcnt line to
> padcnt=`printf "%03s" $count | tr -d ' '`
> which removes the offending spaces. Did anyone else encounter this problem?
I also had this problem with the script. When I implement the change you
recommend, however, it seems to work just fine. Thank you for catching
the problem!
--Rosa Williams
Dr. Rosa N. M. Williams NRC Research Associate
NASA's GSFC, Code 662 rosanina@milkyway.gsfc.nasa.gov
Greenbelt, MD 20771 http://lheawww.gsfc.nasa.gov/users/rosanina
Phone: 301-286-6002 Fax: 301-286-1629
This archive was generated by hypermail 2b29 : Wed May 15 2013 - 01:00:03 EDT