Sponsored Content
Top Forums Shell Programming and Scripting Help with extracting words from fixed length files Post 302459794 by danmero on Tuesday 5th of October 2010 11:31:06 AM
Old 10-05-2010
Quote:
Originally Posted by bds052189
There are multiple HDR lines and the customer name comes after the account that i need to extract?
Please use [code] tags when you post code or data sample !
Code:
awk '/^HDR/{print substr($(NF-1),9)}' file

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating a fixed length output from a variable length input

Is there a command that sets a variable length? I have a input of a variable length field but my output for that field needs to be set to 32 char. Is there such a command? I am on a sun box running ksh Thanks (2 Replies)
Discussion started by: r1500
2 Replies

2. Shell Programming and Scripting

sort on fixed length files

Hi How to sort a fixed length file on a given char range and just display the duplicates. I did search for man sort to find any option but could find any.,something similar to cut -c 1-5,25-35. I have alternate way of doing this by using combination of cut,awk. but this creates extra temp... (6 Replies)
Discussion started by: sach_in
6 Replies

3. Shell Programming and Scripting

Awk with fixed length files

Hi Unix Champs, I want to awk on a fixed length file. Instead if the file was a delimited file, then I could have used -F and then could have easily done manipulation on the fields. How do i do the same in case of fixed length file? Thanks in Advance. Regards. (7 Replies)
Discussion started by: c2b2
7 Replies

4. Shell Programming and Scripting

Join two fixed length Files in Unix

Hi, Can we join two fixed length files in Unix using JOIN command? Is there any other command to accomplish the same? Thanks, G.Harikrishnan (6 Replies)
Discussion started by: gharikrishnan
6 Replies

5. Shell Programming and Scripting

Awk - Working with fixed length files

OK I am somewhat new to UNIX programming please see what you can do to help. I have a flat file that is a fixed length file containing different records based on the 1st character of each line. The 1st number at the beginning of the line is the record number, in this case it's record #1. I... (3 Replies)
Discussion started by: ambroze
3 Replies

6. UNIX for Dummies Questions & Answers

What the command to find out the record length of a fixed length file?

I want to find out the record length of a fixed length file? I forgot the command. Any body know? (9 Replies)
Discussion started by: tranq01
9 Replies

7. Shell Programming and Scripting

Make variable length record a fixed length

Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types: (H)eader Records (D)etail Records (T)railer Records The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies

8. Shell Programming and Scripting

changing a variable length text to a fixed length

Hi, Can anyone help with a effective solution ? I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces. The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies

9. UNIX for Dummies Questions & Answers

Fixed length file extracting values in columns

How do I extract values in a few columns in a row of a fixed length file? If there are 8 columns and I need to extract values of 2nd,4th and 6 th columns, how do i do that? I used cut command, this I used only for one column. How do I do it more than one column? The below command will give... (1 Reply)
Discussion started by: princetd001
1 Replies

10. Shell Programming and Scripting

Extracting fixed length number from a text file

Hi, I have a text file with sample records as CASE ID: 20170218881083 Original presentment record for ARN not found for Re-presentment I want to extract the 23 digit number from this file. I thought of using grep but initially couldn't extract the required number. However, after... (16 Replies)
Discussion started by: dsid
16 Replies
pfsoutjpeghdr(1)					      General Commands Manual						  pfsoutjpeghdr(1)

NAME
pfsoutjpeghdr - Write images or frames in JPEG-HDR format SYNOPSIS
pfsoutjpeghdr (<file> [--linear] [--quality <val>] [--correction <correct>] [--frames <range>]) [<file>...] DESCRIPTION
Use this command to write JPEG file with HDR extension. This software makes use of the High Dynamic Range Imaging Library from Sunnybrook Technologies Inc. (c) Sunnybrook Inc. 2005 OPTIONS
--quality <val>, -q <val> The --quality setting controls the overall compression/quality trade-off, with 100 being the maximum setting, producing the lowest losses and the largest output files. Quality settings below 70 may result in significant image degradation, and should be avoided in critical applications. Default: --quality=90 --correction <correct>, -c <correct> The --correction setting controls the algorithm used during downsampling of the HDR ratio image data. The default precorrect option compensates for resampling errors by adjusting the tone-mapped image to maximize the accuracy of the HDR result. This option may sometimes induce modest halo artifacts in the tone-mapped image at lower quality settings. If the tone-mapped (backwards compati- ble) image is more important than the HDR version, the postcorrect option may be used, instead. To avoid all artifacts from HDR resampling, specify the fullsamp option. This will result in slightly larger image files. Default: --correction=precorrect --alpha <a>, -a <a>; --beta <b>, -b <b> The --alpha and --beta settings control color desaturation during tone-mapping, which will also permits super-saturated colors to pass through safely. (See the appendix of the paper by Ward and Simmons cited below for details.) Use --alpha < 1 to desaturate colors and --beta > 1 to enhance color saturation contrast. Any input color space will be converted to the standard YCC color space of JPEG, based on the CCIR-709 (sRGB) primaries. Default: --alpha=1, --beta=1. EXAMPLES
pfsin memorial.hdr | pfsoutjpeghdr memorial.jpeg BUGS
Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de>. SEE ALSO
pfsinjpeghdr(1) Subband Encoding of High Dynamic Range ImagerybyWardandSimmons (www.anyhere.com/gward/papers/apgv04) pfsoutjpeghdr(1)
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy