Sponsored Content
Top Forums Shell Programming and Scripting Formatting a report from 2 files Post 302100251 by vgersh99 on Monday 18th of December 2006 08:51:13 AM
Old 12-18-2006
prompt: your input files are missing HEADER lines as you had them in the original one.

if you're NOT going to have header lines, then delete line
Code:
FNR == 1 { next }


Last edited by vgersh99; 12-18-2006 at 10:50 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatting files

We currently use the following script to format a non formatted file to an 80 byte format (for grep purposes etc..) We need some assistance with converting the file back to a non formatted file with no carriage returns ( we want the file to be a continuous line) #!/usr/local/bin/perl ($fn,... (1 Reply)
Discussion started by: rivera
1 Replies

2. Shell Programming and Scripting

formatting and merging 2 data files

Hi, I have 2 files that I got as an output from another program. They are : File 1 ((((((CtBJa:197.0,CtBTz:197.0):85.0,CtAHr:197.0):116.0,CtDUw:197.0):176.0,CtSwe:197.0):110.0, (CtL2b:197.0,Ct4Bu:197.0):196.0):197.0,CmuNg:197.0);... (5 Replies)
Discussion started by: Lucky Ali
5 Replies

3. Shell Programming and Scripting

formatting files

how do i add the directory name to multiple flies and pad numbers sequences /bin/bin2/bin3/bin4/bin5/foo_bar_vX/foobar ie i have a pic in the foobar folder call dsc.1 id like to change it to foobar_dsc.0001 (2 Replies)
Discussion started by: thehive
2 Replies

4. Shell Programming and Scripting

Help needed in formatting script files

Hi, Can anyone tell me how i can convert all tab spaces inside a script to 4 spaces through another script. Also i need to find if all the quotes are matching and ended properly. Any idea whould be of great help. Many thanks! (3 Replies)
Discussion started by: justchill
3 Replies

5. Shell Programming and Scripting

Reading files under a folder and formatting content of each file

I have 'n' number of files in a folder .each file in the folder "myfolder" is having the content like. COLNAME ------------ AAAAAA BBBBBB CCCCCC DDDDDD ... ... ... ZZZZZZ 26 recrod(s) selected. My request is by reading each file in "myfolder" and format each file such a way... (18 Replies)
Discussion started by: rocking77
18 Replies

6. UNIX for Dummies Questions & Answers

SQL PLUS report formatting

Hi I am fetcthing the data from the oracle database using SQLPLUS. Here is my script #!/bin/ksh echo `sqlplus -s <<EOF set feedback off set linesize 5000 set pages 0 set space 0 set echo off set trimspool on set colsep '|' SELECT col1 , col2... (4 Replies)
Discussion started by: max_hammer
4 Replies

7. Shell Programming and Scripting

Formatting a report using awk

Our vendor produces a report that I would like to format in a particular way. Here is the sample output from their report: # AA.INDEX 2 11 2 239 52 (7,2) 07 MAY 11 203.1 55 # ACCOUNT 2 89561 2 ... (4 Replies)
Discussion started by: thaller
4 Replies

8. Shell Programming and Scripting

Formatting Report and Reading data and fetching the details from contents file

Data I was trying to write shell script which will be return the output in the below format First i was trying to do these using sed. sed -n '/.ksh/p' mainksh.ksh sed -e 's/*\(.*\)/\1/g' mainksh.ksh $RUN_DIR, $SUB_DIR and the variables which will be defined in the profile file. when i am... (0 Replies)
Discussion started by: rameshds
0 Replies

9. Shell Programming and Scripting

search for content in files. Name of files is in another file. Format as report.

Hi I have multiple files in a folder and one file which contains a list of files (one on each line). I was to search for a string only within these files and not the whole folder. I need the output to be in the form File1<tab>string instance 2<tab> string instance 2<tab>string instance 3... (6 Replies)
Discussion started by: pkabali
6 Replies

10. Shell Programming and Scripting

Formatting The Output Files & Matching Keys

I have the following 2 output files, one contain the standard output after i decrypt the encrypted file and another keys listed from the gpg trust db, Provider File: gpg: encrypted with 2048-bit RSA key, ID 96301328, created 2014-04-29 "JKL <400@abc.com>" gpg: encrypted with 2048-bit... (2 Replies)
Discussion started by: Ariean
2 Replies
Finance::Quote::Tiaacref(3)				User Contributed Perl Documentation			       Finance::Quote::Tiaacref(3)

NAME
Finance::Quote::Tiaacref - Obtain quote from TIAA-CREF. SYNOPSIS
use Finance::Quote; $q = Finance::Quote->new; %stockinfo = $q->fetch("tiaacref","TIAAreal"); DESCRIPTION
This module obtains information about TIAA-CREF managed funds. The following symbols can be used: Stock: CREFstok Money Market: CREFmony Equity Index: CREFequi Inf-Linked Bond: CREFinfb Bond Market: CREFbond Social Choice: CREFsoci Global Equities: CREFglob Growth: CREFgrow TIAA Real Estate: TIAAreal PA Stock Index: TIAAsndx PA Select Stock: TLSIX PA Select Growth Equity: TLGEX PA Select Growth Income: TLGIX PA Select Int'l Equity: TLIEX PA Select Social Choice: TLSCX PA Select Large Cap Value: TLLCX PA Select Small Cap Equity: TLCEX PA Select Real Estate: TLREX TIAA-CREF Money Market: TIAXX TIAA-CREF Bond Plus: TIPBX TIAA-CREF High-Yield Bond: TCHYX TIAA-CREF Inflation-Linked Bond: TCILX TIAA-CREF Short-Term Bond: TCSTX TIAA-CREF Tax-Exempt Bond: TCTEX TIAA-CREF Real Estate Securities: TCREX TIAA-CREF Equity Index: TCEIX TIAA-CREF Growth Equity: TIGEX TIAA-CREF Growth & Income: TIGIX TIAA-CREF International Equity: TIINX TIAA-CREF Large-Cap Value: TCLCX TIAA-CREF Mid-Cap Growth: TCMGX TIAA-CREF Mid-Cap Value: TCMVX TIAA-CREF Small-Cap Equity: TCSEX TIAA-CREF Social Choice Equity: TCSCX TIAA-CREF Managed Allocation: TIMAX This module is loaded by default on a Finance::Quote object. It's also possible to load it explicitly by passing "Tiaacref" in to the argument argument list of Finance::Quote->new(). Information returned by this module is governed by TIAA-CREF's terms and conditions. LABELS RETURNED
The following labels may be returned by Finance::Quote::Tiaacref: symbol, exchange, name, date, nav, price. SEE ALSO
TIAA-CREF, http://www.tiaa-cref.org/ perl v5.12.1 2009-10-05 Finance::Quote::Tiaacref(3)
All times are GMT -4. The time now is 05:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy