You could try using this approach:
PRC=%
fmtdate=$(date "+${PRC}Y${PRC}m${PRC}d")
Check out the usage of double quotes.
It should work.
Best Regards,
Octav
On Thu, Dec 02, 1999 at 10:35:35AM -0500, Steve Romankiw wrote:
> I have a script that it conflicting with SCCS. In the example below,
> the %Y% in the date clause is getting interpretted by SCCS.
>
> Is there a way to make SCCS ignore this clause?
>
> TIA
>
> Steve Romankiw
>
> Example:
> ==============
> #!/bin/ksh
> #-----
> # SccsId %W%
> #-----
> fmtdate=$(date '+%Y%m%d') # %Y% conflicts with SCCS
> #
> echo Formated Date: ${fmtdate}
>
--
Octav Chiriac Phone: (373) 2 22 99 67
NetInfo S.R.L. Fax: (373) 2 21 36 59
Chisinau (373) 2 22 84 88
Moldova, Republic of mailto:com@netinfo-moldova.com