[NTLUG:Discuss] Script question:  give me the next sequential	filename....
    Jack Snodgrass 
    jack+ntlug at mylinuxguy.net
       
    Mon Mar 31 09:41:17 CST 2003
    
    
  
I need to create a log. It needs to be called 
makefile.yymmdd-x where
makefile.yymmdd can be done with something like
makefile.`date +DATE: '%y%m%d`
...now the catch... the first time I run this today, I want
makefile.030331-1
the next time I want
makefile.030331-2
and then 
makefile.030331-3
etc. 
Is there a simple way to do this from bash or csh. 
I know that I can use php or rexx or perl to do this, 
but can I do it from simple scripting commands? 
Thanks - jack 
    
    
More information about the Discuss
mailing list