First the user will call a file name Time.sh and enter two data, namely StartTime , EndTime. I have the code in Time.sh file to extract the data between the StartTime and EndTime. I am using the follwing code.
#!/bin/bash
read -p "Enter StartTime:" StartTime
read -p "Enter EndTime:" EndTime
awk -v StartTime="$StartTime" -v EndTime="$EndTime" -f Script.sh Test.log
So in the bash I will something like below,
$ ./Time.sh
Enter Start Time :(User will enter StartTime. Example:01:04:22)
Enter End Time : (User will enter EndTime. Example:01:05:22)
I want to simplyfy it for the user like, the user should type all three data in a single line like,
Time.sh 01:04:22 01:05:55
How can I modify to get the same result? Please Help.