I notice that the concatenated file is saved in the created folder.. The main point is to make a copy of all the files for the same date in a new folder... And the concatenated file should be saved in the original folder where are all the files.. Thanks for your help
---------- Post updated 11-23-12 at 05:46 AM ---------- Previous update was 11-22-12 at 01:51 PM ----------
Thanks guys
I have done a little change in your script to like that,, and now is working as I want. thanks again.
Hi,
I have written a script to rename a file, but I can not add the current date (in YYYYMMDD-HHMM format)
can you please look at this cript, and help?
thanks,
#!/usr/local/bin/tcsh -f
set server = "$1"
set user = "$2"
if (-f $server) then
\mv $server $server.Saar.
endif (4 Replies)
How can I add date in format yyyymmdd to my existing file name ?
For example my file name is test.dat then i want it to be test.datyyyymmdd (3 Replies)
Hi Guys here I am again,
I have two files in a specified location.
Location ex: /opt/xdm/input/
input file names: 1. abc_app.yyyymmdd.dtd
2. abd_app.yyyymmdd.dtd
I need to build a code that reads the files from the location based on the oldest date and cuts the date part... (5 Replies)
I am a beginner in script writing, i tried to do the following
I have a set of files sorted by date in the format YYMMDD.s and .x and .r
I need to concatenate a header file to these sets of files so I used the following code
echo "enter Swath number"
read s
echo "please enter first date and... (2 Replies)
Hi ,
i have below files in wrk folder. file names are
1102090001.CLT
1102090003.CLT
1102100019.CLT
1102100020.CLT
the above files are concatenate to one file but that concatenate file name must be same naming convention. (date +%y%m%d)and 0001 count.
example : concatenate file... (9 Replies)
I have an input file which looks like something mentioned below:
======
25/07/2011 05:06:59 : test
======
25/07/2011 05:06:59 : test1
======
25/07/2011 05:08:09 : test2
======
I need to write a script which will take date in the format "25/07/2011 05:07:01" as input and compare it... (1 Reply)
Hi,
I have a script that runs to generate a log file which is in this format:
Start: Friday, April 29, 2011 18:30
User :
Host :
Database :
I need to write a script that reads this log file (RUN.LOG) and rename the existing log file... (7 Replies)
Hi Experts,
I am trying to merge multiple files into one file based upon the file name.
Testreport_Server1.txt ============
MonitoringReport_Server1.txt============ CentralReport_Server1
Here two files containing server1 should be merged into one file?
How can i do... (16 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)