Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thank you for your reply. It is a bit complicated for me and I did not manage to do it (I tried before your edit). I however took inspiration for the move command :) Commented Apr 3, 2014 at 9:00
  • @LaurentC. No problem. It was a bonehead mistake and I'm sorry. The reason it didn't work before is I used the percent to strip the .doc from the tail of $d, but I forgot that if you use that in a printf statement you have to escape the %percent with another %percent because that's what printf uses for formatting. Sorry, man. Commented Apr 3, 2014 at 9:12