Hello HIToc, On Fri, 2006-09-22 at 22:40 +0200, HIToC wrote: > Now I have tried your script but it does not exports the DATEMSK to the > environment: if next the execution of the script I type > echo $DATEMSK it prints nothing. How did you execute the script? In order to have the variable exported, you have to source this shell script. Try something like this: . ./script or source ./script Best regards, Henry - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html