OK, I see that the date in your file is not in ddmmyyyy and I clearly said in my previous post to make sure that the date is in ddmmyyyy format!
So now it is obvious why the code didn't work for date entered.
You have 2 options here, either enter the date as per the format in your file or convert the date to required format using GNU date:
And run the awk code.
Hi ,
Assume today's date is 10-May-2002. I want to get a list of files which were last modified since 01-May-2002. If I run the script after 5 days, it should still list me the files modified from 01-May-2002 till today. I also plan to pass the date 01-May-2002 as an argument to the shell script... (3 Replies)
i would be grateful if someone could supply me with a shell script which performed a ftp but only retrieved files which had a created date greater than a specific date - is this possible with ftp?
many thanks
mc (1 Reply)
Hello All,
I am stuck with the follwing problem , pls give me some advice..
Input file:
input clock;
input reset; \\reset all
input yuv;
//input comment
output sur;
output sud;
output vtua;
output tur;
input ebi;
//output comment
The input file... (1 Reply)
Hi
My OS is solaris 64 bit 10, I have many files in a logs directory where we recive 40-50 logs every day. i have last 20 days file present in this directory. I want to move each day file to a particulaar directory whose name is appended with the date of file.
eg
Code:
1.txt file... (1 Reply)
Hello,
I currently have the need to perform backup, naming the file by date. How do I get the script, you can choose the most current file or current date and then upload it? My script is related to this topic that is already closed.
Read Post
Can anyone help me? (12 Replies)
Dear All,
I am capturing system date and creating the file by using that time stamp, file is getting appended with checks of application & database check logs.
But when the date is in between 1 to 9 both inclusive, it appends a single space to file name but after 9th it works fine.
... (5 Replies)
Hi,
On my Java webpage which invokes the shell script has two checkboxes viz ...
apache
and
weblogic
apache require one parameter i.e apache home from the user while Weblogic requires three or five params from the user vi.z weblogic_home or <jdk_home, config_home & pid>, username and... (4 Replies)
hi all,
need a script or command to get the previous date for the given input date...
like in my script i will pass date as input parameter like 2014-12-01 and i want the output as previous date.. ie.. 2014-11-30 (2 Replies)
Hi,
Could you please provide me command to filter contents between date in a log file?
Say for example, in a log file I want to capture contents between date May 01 from 5am to 9 am.
OS -- Linux
Regards,
Maddy (1 Reply)