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
df_hfs(1M)																df_hfs(1M)

NAME
df_hfs: df - report number of free CDFS, HFS, or NFS file system disk blocks SYNOPSIS
FStype] specific_options] [special|directory]... DESCRIPTION
The command displays the number of free 512-byte blocks and free inodes available for file systems by examining the counts kept in the superblock or superblocks. If a special or a directory is not specified, the free space on all mounted file systems is displayed. If the arguments to are path names, reports on the file systems containing the named files. If the argument to is a special of an unmounted file system, the free space in the unmounted file system is displayed. Options recognizes the following options: Report only the number of kilobytes (KB) free. Report the total number of blocks allocated for swapping to the file system as well as the number of blocks free for swapping to the file system. This option is supported on HFS file systems only. Report the number of files free. Report only the actual count of the blocks in the free list (free inodes are not reported). When this option is specified, reports on raw devices. Report only on the FStype file system type (see fstyp(1M)). For the purposes of this manual entry, FStype can be one of and for the CDFS, HFS, and NFS file systems, respectively. Report the entire structure described in statvfs(2). Report the total number of inodes, the number of free inodes, number of used inodes, and the percentage of inodes in use. Report the allocation in kilobytes (KB). Report on local file systems only. Report the file system name. If used with no other options, display a list of mounted file system types. Specify options specific to the HFS file system type. specific_options is a comma-separated list of suboptions. The available suboption is: Report the number of used and free inodes. Report the total allocated block figures and the number of free blocks. Report the percentage of blocks used, the number of blocks used, and the number of blocks free. This option cannot be used with other options. Echo the completed command line, but perform no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. When is used on an HFS file system, the file space reported is the space available to the ordinary user, and does not include the reserved file space specified by Unreported reserved blocks are available only to users who have appropriate privileges. See tunefs(1M) for information about When is used on NFS file systems, the number of inodes is displayed as -1 . This is due to superuser access restrictions over NFS. EXAMPLES
Report the number of free disk blocks for all mounted file systems: Report the number of free disk blocks for all mounted HFS file systems: Report the number of free files for all mounted NFS file systems: Report the total allocated block figures and the number of free blocks, for all mounted file systems: Report the total allocated block figures and the number of free blocks, for the file system mounted as /usr: WARNINGS
does not account for: o Disk space reserved for swap space, o Space used for the HFS boot block (8K bytes, 1 per file system), o HFS superblocks (8K bytes each, 1 per disk cylinder), o HFS cylinder group blocks (1K-8K bytes each, 1 per cylinder group), o Inodes (currently 128 bytes reserved for each inode). Non-HFS file systems may have other items that this command does not account for. The option, from prior releases, has been replaced by the option. FILES
File system devices. Static information about the file systems Mounted file system table SEE ALSO
du(1), df(1M), fsck(1M), fstab(4), fstyp(1M), statvfs(2), mnttab(4). STANDARDS CONFORMANCE
df_hfs(1M)
All times are GMT -4. The time now is 04:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy