Hi All
I am trying to use a hard coded script into shell scripting but I am unable to .
Kindly find the Script below along with the command Please help
but this is not working $0 is picking the name of the shell script I am running .
I tried using back slash but that is also not working though the value does not get updated.
In addition to what RudiC has already suggested, you also need to realize that a string in the format you are prompting for ( YYYYMMDD ) is not going to work well to compare against a string in the format MM/DD/YYYY which is what you said works with your existing pipeline.
And that if the pipeline matching against [04/26/2016][03:30:00.000] (note that there is no space in this pattern) works, then a command that puts a space between the expansion of the Date and Time variables (as in
can't work). And, furthermore, if you are reading a variable named date , you need to reference the contents of that variable using $date (NOT $Date ).
Hi Sir
The Variable are working properly and are taking what is being shared by the user in input (Tried echo its fetching correct values).
so Date and Time is not the issue here.
I agree ' " can be a issue but I have tried a lot but not able to figure out how to use it.
I have shared the awk command above can you create a UI based script I can try?
I am not able to use expect send and interact.Public and private keys cannot be placed on all servers.Userid and password cannot be hardcoded. SED does not work on the servers.
I want to logging into server and run the awk command working individually through script on all the required servers.