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)
Hi, I have to change a tab delimited file to a fixed length file. For text fields I need to left justify and NULL fill to the right and for number fields I need to right justify and zero fill to the left. If there are spaces between words in a text field I need to keep them as spaces. I am using... (14 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)
I have below fixed lenth file . I have to convert this to delimitted file.
File1.txtE116005/29/19930E001E000
E12201/23/19940E001E003
E10406/4/19940E001E003
I want to convert this to :
E116,0,05/29/1993,0,E001,E000
E122,0,1/23/1994,0,E001,E003
E104,0,6/4/1994,0,E001,E003
I have a... (7 Replies)
Newbie
Looking for a script to convert my input file to delimited text file. Not familier with AWK or shell programing. Below is sample record in my input file and the expected output format. My OS is HPUX 11.23.
Thanks in advance for your assistance.
tbtbs
input file:... (12 Replies)
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)
Hi All,
I need to convert a fixed length file to a delimited file with , (comma). But not all columns, some of the columns in the fixed files are used as fillers and I do not need that in the output file.
test_fixed_len.txt
I 0515 MR 394
I 0618 MR & MRS 942
I 0618 MR & MRS... (7 Replies)
Hi Team,
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 Replies
LEARN ABOUT DEBIAN
vcrop
vcrop(1Vi)vcrop(1Vi)NAME
vcrop - crop an image
SYNOPSIS
vcrop [-option ...] [infile] [outfile]
DESCRIPTION
vcrop crops a file of images using a cropping rectangle specified by command line options.
COMMAND LINE OPTIONS
vcrop accepts the following options:
-help Prints a message describing options.
-in infile Specifies a Vista data file containing the input images.
-out outfile Specifies where to write the cropped images as a Vista data file.
-top row Specifies the first (top) row of the cropping rectangle.
-bottom row Specifies the last (bottom) row of the cropping rectangle.
-left col Specifies the first (leftmost) column of the cropping rectangle.
-right col Specifies the last (rightmost) column of the cropping rectangle.
-height nrows Specifies the height of the cropping rectangle.
-width ncols Specifies the width of the cropping rectangle.
The cropping rectangle must be unambiguously specified by using any two of -top, -bottom, and -height, plus any two of -left, -right, and
-width.
The cropping rectangle may fall partially or completely outside an image it is cropping; in that case, the area outside is filled with
zeros.
Input and output files can be specified on the command line or allowed to default to the standard input and output streams.
SEE ALSO vxcrop(1Vi), VImage(3Vi), Vista(7Vi)AUTHOR
Ralph Horstmann <horstman@cs.ubc.ca>
Vista Version 1.12 24 April 1993 vcrop(1Vi)