bash error

Kevin P. Fleming kpfleming at
Sun Nov 28 15:42:33 PST 2004

ken_i_m at wrote:

> statement.  Going back to how I got here:
>   let t_stamp=`date +%H%M`
> edit to
>   let t_stamp=(10#`date +%H%M`)
> does not result in an error message.  Adjusting the date to the midnight
> hour on a test box this appears to work.  Cool.

Thanks for letting us know that it worked :-) You can simplify this to:

   let t_stamp=`date +10#%H%M`

because the date command will pass through any literal text in the 
provided format.

More information about the lfs-chat mailing list