Sponsored Content
Special Forums UNIX and Linux Applications Concatenation of different reports dynamically Post 302979988 by Jesshelle David on Monday 22nd of August 2016 05:17:20 PM
Old 08-22-2016
Concatenation of different reports dynamically

Hi,

I have the following reports that get generated every 1 hour and this is my requirement:

1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR"
"Report.Dddmmyy.Thhmiss.ACCD"
"Report.Dddmmyy.Thhmiss.BCCD"
"Report.Dddmmyy.Thhmiss.CCCD"
"Report.Dddmmyy.Thhmiss.DDDD"

2. At the end of the day I need to concatenate all reports with similar names into a single file.
For example: 24 files for pattern "Report.Dddmmyy.Thhmiss.CTLR" into a single file called "Test.dat" and so on.

3.Please note that the last four letters of the file name will be a constant and the reports have to be concatenated using this.

4. I do not want to parameterize just these last four letters or list the last four letter as ls -l *CTLR* as this will be hard coding so could there be a better way of handling this!?

Kindly advise.

Thanks,
Jess
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to implement cron job to run my reports dynamically?

How to implement cron job. Ex: I need to run SQR reports dynamically by using cron job. How can I implement cron job in shell.. If any one is having sample script in any shell that would be great help to me. Thanks Siva (1 Reply)
Discussion started by: siva
1 Replies

2. Shell Programming and Scripting

Concatenation

What is syntax for String concatenation? I have $1 as directory. $var is some variable value '/' String value. How do I have to concatenate if I have to run utility - util $1 followed by '/' followed by $var There is no space between these three. (2 Replies)
Discussion started by: videsh77
2 Replies

3. UNIX for Dummies Questions & Answers

string concatenation

my input file contains thousands of lines like below 234A dept of education 9788 dept of commerce 8677 dept of engineering How do i add a delimeter ':' after FIRST 4 CHARACTERS in a line 234A:dept of education 9788:dept of commerce 8677:dept of engineering (7 Replies)
Discussion started by: systemsb
7 Replies

4. UNIX for Dummies Questions & Answers

File Concatenation

Hi, I want to write a generic shell script, which can concatenate n number of files passed as parameter ;to an output file which is again a parameter Example catfl.sh outfl.txt a.txt b.txt c.txt (3 files to be concatenated into a file outfl.txt) catfl.sh outfl.txt a.txt b.txt(2 files to be... (3 Replies)
Discussion started by: samit_9999
3 Replies

5. Shell Programming and Scripting

Concatenation

How can I do this: date = 4 -----------> 04 Month= 3-----------> 03 I wish to make a varibale named Var1 which will hold the value of current date and month value as: 2 digits for date. 2 digits for month. So finally var1 should hold value as 0403 --- MMDD (11 Replies)
Discussion started by: Asteroid
11 Replies

6. Shell Programming and Scripting

String concatenation

Hi, I have two files. cat file.txt a b c d cat file1.txt j k l m I need the output as a:j (12 Replies)
Discussion started by: nareshkumar522
12 Replies

7. Shell Programming and Scripting

Line concatenation help

please help me on this.... cat /xx.txt 2:1 2 2:2 24 8:0 0 9:0 0 Expected result would be 2:1 2 2:2 24 8:0 0 9:0 0 (4 Replies)
Discussion started by: Aditya.Gurgaon
4 Replies

8. Shell Programming and Scripting

Issue in Concatenation/Joining of lines in a dynamically generated file

Hi, I have a file containing many records delimited by pipe (|). Each record should contain 17 columnns/fields. there are some fields having fields less than 17.So i am extracting those records to a file using the below command awk 'BEGIN {FS="|"} NF !=17 {print}' feedfile.txt... (8 Replies)
Discussion started by: TomG
8 Replies

9. Shell Programming and Scripting

UNIX/Linux help in concatenation of multiple reports

Hi, I have the following reports that get generated every 1 hour and this is my requirement: 1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR" "Report.Dddmmyy.Thhmiss.ACCD" "Report.Dddmmyy.Thhmiss.BCCD" "Report.Dddmmyy.Thhmiss.CCCD"... (1 Reply)
Discussion started by: Jesshelle David
1 Replies

10. Shell Programming and Scripting

Concatenation of files with same naming patterns dynamically

Since my last threads were closed on account of spamming, keeping just this one opened! Hi, I have the following reports that get generated every 1 hour and this is my requirement: 1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR"... (5 Replies)
Discussion started by: Jesshelle David
5 Replies
analog(1)						      General Commands Manual							 analog(1)

NAME
analog - web server logfile analyser SYNOPSIS
analog --help analog [(-|+)1] [(-|+)4] [(-|+)5] [(-|+)6] [(-|+)7] [(-|+)A] [(-|+)a] [-B|+B[options]] [-b|+b[options]] [(-|+)C'configuration-line'] [-c|+c[options]] [(-|+)D] [(-|+)d] [-E|+E[options]] [-F|+Fdate] [-f|+f[options]] [-G] [+gfilename] [(-|+)H] [(-|+)h] [-I|+I[options]] [-i|+i[options]] [-J|+J[options]] [-j|+j[options]] [-K|+K[options]] [-k|+k[options]] [-L|+L[options]] [-l|+l[options]] [-M|+M[options]] [(-|+)m] [-N|+N[options]] [-n|+n[options]] [+Ooutput-file] [-o|+o[options]] [(-|+)P] [-p|+p[options]] [(-|+)Q] [-q|+q[[-|+]types]] [-R|+R[options]] [-r|+r[options]] [-S|+S[options]] [(-|+)S] [-T|+Tdate] [-t|+t[options]] [(-|+)Ucache] [-u|+u[options]] [-V|+V[[-|+]types]] [-v|+v[options]] [(-|+)W] [(-|+)w] [(-|+)X] [(-|+)x] [-Y|+Y[options]] [-y|+y[options]] [-Z|+Z[options]] [(-|+)z] [--settings] [logfile...] but normally just analog [-G] [+gfilename] DESCRIPTION
Analog is a program for analyzing log files, and is designed to be fast and to produce attractive statistics. The usual (and easier) way of configuring analog is through a configuration file, not command line options. For more information about writing a configuration file or about the command line options see Readme.html in the analog documentation. A description of what options are available for the non-time reports is available in othreps.html#othclarg in the analog documentation. OPTIONS
--help Display version and help information and exit. (-|+)1 Toggle the Yearly Report. (-|+)4 Toggle the Quarter-Hour Report. (-|+)5 Toggle the Five-Minute Report. (-|+)6 Toggle the Quarter-Hour Summary. (-|+)7 Toggle the Five-Minute Summary. (-|+)A Turn all the reports (except the General Summary) off or on. (-|+)a Toggle output style between HTML and PLAIN formats, respectively. -B|+B[options] Turn the Browser Report off or on, possibly setting options. -b|+b[options] Turn the Browser Summary off or on, possibly setting options. (-|+)C'configuration-line' Include configuration-line in the configuration commands. -c|+c[options] Turn the Status Code Report off or on, possibly setting options. (-|+)D Toggle the Daily Report. (-|+)d Toggle the Daily Summary. -E|+E[options] Turn the Redirection Report off or on, possibly setting options. -F|+Fdate Toggle or set the FROM date. Use -F to turn the FROM date off, and use +Fdate to set the FROM date. -f|+f[options] Turn the Referrer Report off or on, possibly setting options. -G Do not use the default configuration file. +gfilename Add filename to the list of configuration files. (-|+)H Turn the Hourly Report off or on, possibly setting options. (-|+)h Toggle the Hourly Summary. -I|+I[options] Turn the Failure Report off or on, possibly setting options. -i|+i[options] Turn the Directory Report off or on, possibly setting options. -J|+J[options] Turn the User Failure Report off or on, possibly setting options. -j|+j[options] Turn the User Redirection Report off or on, possibly setting options. -K|+K[options] Turn the Failed Referrer Report off or on, possibly setting options. -k|+k[options] Turn the Redirected Referrer Report off or on, possibly setting options. -L|+L[options] Turn the Host Failure Report off or on, possibly setting options. -l|+l[options] Turn the Host Redirection Report off or on, possibly setting options. -M|+M[options] Turn the Virtual Host Failure Report off or on, possibly setting options. (-|+)m Toggle the Monthly Report. -N|+N[options] Turn the Search Query Report off or on, possibly setting options. -n|+n[options] Turn the Search Word Report off or on, possibly setting options. (-|+)Ooutput-file Write output to output-file. Use - for stdout. -o|+o[options] Turn the Domain Report off or on, possibly setting options. (-|+)P Toggle the Processing Time Report. (-|+)p Toggle the Operating System Report. (-|+)Q Toggle the Quarterly Report. -q|+q[[-|+]types] Turn all warnings off/on, or remove/add/use exactly specified types of warnings. -R|+R[options] Turn the Virtual Host Redirection Report off or on, possibly setting options. -r|+r[options] Turn the Request Report off or on, possibly setting options. -S|+S[options] Turn the Host Report off or on, possibly setting options. -s|+s[options] Turn the Referring Site Report off or on, possibly setting options. -T|+Tdate Toggle or set the TO date. Use -T to turn the TO date off, and use +Tdate to set the TO date. -t|+t[options] Turn the File Type Report off or on, possibly setting options. (-|+)Ucache Use file cache for cache output. -u|+u[options] Turn the User Report off or on, possibly setting options. -V|+V[[-|+]types] Turn all debugging off/on, or remove/add/use exactly specified types of debugging messages. -v|+v[options] Turn the Virtual Host Report off or on, possibly setting options. (-|+)W Toggle the Weekly Report. (-|+)w Toggle the Hour of the Week Report. (-|+)X Toggle GOTOS (on and off only). (-|+)x Toggle the General Summary. -Y|+Y[options] Turn the Internal Search Query Report off or on, possibly setting options. -y|+y[options] Turn the Internal Search Word Report off or on, possibly setting options. -Z|+Z[options] Turn the Organization Report off or on, possibly setting options. (-|+)z Toggle the File Size Report. --settings Instead of processing any files, display in English the settings analog would use if it ran normally. This is useful for trou- bleshooting. logfile... The logfiles to be analysed. Use - for stdin. SEE ALSO
The analog home page at http://www.analog.cx/ The analog documentation on your local machine, or from the analog home page. BUGS
An up to date list of known bugs and bug fixes can be found at http://www.analog.cx/bugs.html AUTHORS
Analog and related documentation was written by Stephen Turner <analog-author@lists.meer.net>, with contributions from other authors. (See acknow.html in the analog documentation.) This man page was written by Alexander Toth <alex@purificator.net>. Analog Version 6.0 19 December 2004 analog(1)
All times are GMT -4. The time now is 05:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy