10 More Discussions You Might Find Interesting
1. Linux
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)
Discussion started by: Maddy123
1 Replies
2. Shell Programming and Scripting
Hi Gurus,
I have file name like:
abcd.20131005.dat
I need to remove mid part of data
final name should be
abcd.dat
thanks in advance (2 Replies)
Discussion started by: ken6503
2 Replies
3. Shell Programming and Scripting
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)
Discussion started by: sharsour
16 Replies
4. Shell Programming and Scripting
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)
Discussion started by: ashok@119
7 Replies
5. Shell Programming and Scripting
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)
Discussion started by: bhallarandeep
1 Replies
6. Shell Programming and Scripting
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)
Discussion started by: krbala1985
9 Replies
7. Shell Programming and Scripting
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)
Discussion started by: docaia
2 Replies
8. HP-UX
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)
Discussion started by: ruthless
5 Replies
9. Shell Programming and Scripting
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)
Discussion started by: amsh76
3 Replies
10. UNIX for Dummies Questions & Answers
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)
Discussion started by: sierra_aar
4 Replies