Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
yea, mv moves the whole file. What I normaly do is essentially the same appending of date to the name and then doing an:
echo "">filenamehere
This will overwrite existing text with a blank line. HTH.
on its own will create the empty file, it's just habit that I use the cat [tt]>filename <<![/tt] trick. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
I notice that in the short script you posted that you're not terminating *any* of the here-document things. You need to finish them with a ! on a line of its own.
What is your aim here? To create a log of everything you've done? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.