Iam new to bash script programming.
I want to implement a bash script deploymLog, which accepts as input one string argument(name)
Eg:
[root@localhost Desktop]# ./deploymLog.sh name
Here i want to pass the string argument through terminal.
As an initial step, I need to append the current timestamp along with this input string to a log file say Logone.txt in current directory in the below format
[name]=[System time timestamp1]
I’m not sure, I have understand what you want.
This small script add a name and system timestamp to a file named
Logone.txt.Eg.:
EDIT : This script is for Unix bash and not for batch, I think you want it under windows batch, change your bash to batch in your description to avoid confusing, and sorry I can’t help you, I do not know anything about batch.