I have a fixed length text file that needs to be cut into individual files in aix and facing padding issues. If I have multiple blank spaces in the file it is just making it one while cutting the files..
Eg:-
$ - blank space
filename:file.txt Desired Output
filename:-1234_A.txt
As per the below code, I am getting the output with just 1 blank space no matter I have any number of blank spaces in the actual file. current output:-
Desired Output
filename:-1234_A.txt
Please give your ideas..
Thx
Last edited by Scott; 02-14-2010 at 01:27 PM..
Reason: Good idea: Code tags, PLEASE!
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)
If someone out there could help me out with this problem. I would really appreciate it.
I am trying to convert xml into text file(fixed length) using Unix Borne shell scripts.
My xml file:
<root>
<header_rec recordtype="00">
<record_id>00</record_id>
... (0 Replies)
Hi, all.
I need to convert a file tab delimited/variable length file in AIX to a fixed lenght file delimited by spaces. This is the input file:
10200002<tab>US$ COM<tab>16/12/2008<tab>2,3775<tab>2,3783
19300978<tab>EURO<tab>16/12/2008<tab>3,28523<tab>3,28657
And this is the expected... (2 Replies)
I have a 1250 byte record that I need to sort in column 10-19 and in column 301. I have tried the sort command, but it looks like it needs delimiters to work. The record can have spaces in a lot of its 1250 columns, but 10-19, and 301 are guaranteed. These columns are numeric too.
A sample... (1 Reply)
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)
Hello All,
I working on ksh. I am using fixed length file. My file is like:
========
IXTTIV110827 NANTH AM IKSHIT
ABCDEF 0617 IJAY NAND EENIG
ZXYWVU 0912 AP OOK OONG
PQRSTU100923 NASA DISH TTY
ASDFG 0223 GHU UMA LAM
QWERT 0111 ATHE SH THEW
=======
From 7th to 12 is a date... (4 Replies)
I have a fixed width file of length 53. when is try to get the lengh of the record of that file i get 2 different answers.
awk '{print length;exit}' <File_name>
The above code gives me length 50.
wc -L <File_name>
The above code gives me length 53.
Please clarify on... (2 Replies)
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)
hi,
i am using below query to generate the fixed length txt file. this sql is being called from shell script.
This is supposed to be a fixed record file with the below definitions. There must be 2 byte filler after the CAT_ID AND each line should have total of 270 bytes.
field ... (1 Reply)
Discussion started by: itzkashi
1 Replies
LEARN ABOUT DEBIAN
ptainterpolate
PTAINTERPOLATE(1) LIBPANO13 TOOLS PTAINTERPOLATE(1)NAME
PTAInterpolate - Interpolate intermediate images between stereo photos.
SYNOPSIS
PTAInterpolate script_file [param2]
DESCRIPTION
PTAInterpolate Interpolate intermediate images between stereo photos.
Description: This program is an enhanced version of Helmut Dersch's original PTInterpolate program. PTInterpolate's source code was never
released, so this program was written from scratch. It is believed that this program should function as a substitute for the original
PTInterpolate program in most circumstances. Enhancements to the original PTInterpolate program include:
1. When used with the accompanying source code in the original distribution, the output is in TIFF format, not PSD (with an incorrect
extension)
2. The output files produced by this program include a numeric value indicating the amount of the interplation position between left and
right images
3. If no valid "i" lines are included in script, then this program triangulates the c lines, and ovrewrites the script file
Usage:
PTAInterpolate script.txt [param2]
Where "param2" is either an image index (0=left, 1=right) to be used when triangulating, or a filename prefix to be used when interpolat-
ing.
SEE ALSO
<http://wiki.panotools.org/>
AUTHORS
Max Lyons, January 2007. Panorama Tools was originally created by Professor Helmut Dersch.
2.9.18 2009-05-01 PTAINTERPOLATE(1)