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)
Any help to read the contents of a variable length csv ....??(using awk)
The csv mite look like this :
anjali,ram,rahul,mohini,sam,.... and so on ...
I need to pick up each name..
Thanks in advance
SD (3 Replies)
Hi all,
Does anyone know a technique for creating a download file in variable length format? I have looked around but haven't found any resources on this (or, maybe I'm not sure what to Google for :) )
Thanks in advance! (2 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)
Hi I am new to shell scripting. I need to parse a file which contains the header and detail records and split into n of file based on dept ID, for ex.
INPUT FILE:
DEPT ID: 1
EMPNAME: XYZ
EMPAddress: XYZZZ
DEPT ID: 2
EMPNAME: ABC
EMPAddress: ABCD
DEPT ID: 1
EMPNAME: PQR
EMPAddress:... (6 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,
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)
I have the output of a process which on status change of the object being processed appends status,timestamp to the record in the text file...
so i end up with output something like:
task123,TERMINAL,glob,5,INITIAL,2012-02-27 16:48:07,PREPARING,2012-02-27 16:49:06,SCHEDULED,2012-02-27... (2 Replies)
Hi,
I'm new to unix, i have a variable length file like below,
01|Test|Test1|Sample|
02|AA|BB|CC|DD|
03|AAA|BBB|CCC|DDD|EEE|RRR|TTT|SSS|YYY|
I need to make this as a fixed length file. Assume that i have 10 columns in the DAT file.
for ex: the first 01 record is having 4cols -... (8 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies
LEARN ABOUT DEBIAN
dbatbl
DBATBL(1) General Commands Manual DBATBL(1)NAME
dbatbl - Manage on-disk reference tables for DB-ALLe
SYNOPSIS
dbatbl [command] [options] [args...]
DESCRIPTION
This tool allows to index and query the tables that are needed for normal functioning of DB-ALLe.
dbatbl always requires a non-switch argument, that indicates what is the operation that should be performed:
help
Print a help summary.
help manpage
Print this manpage.
cat tableid [tableid [...]]
Output all the contents of a WMO B table..
grep string
Output all the contents of the local B table whose description contains the given string..
expand table-entry [table-entry [...]]
Describe a WMO B table entry or expand a WMO D table entry in its components..
expandcode varcode [varcode [...]]
Expand the value of a packed variable code.
index [options] filename index-id
Index the contents of a table file.
describe [options] what [values]
Invoke the formatter to describe the given values. Supported so far are: "level ltype l1 l2", "trange pind p1 p2".
OPTIONS
dbatbl follows the usual GNU command line syntax, with long options starting with two dashes (`-').
Option for command cat
-?, --help
print an help message
-c, --csv
output variables in CSV format
Option for command grep
-?, --help
print an help message
-c, --csv
output variables in CSV format
Option for command expand
-?, --help
print an help message
Option for command expandcode
-?, --help
print an help message
Option for command index
-?, --help
print an help message
-t type, --type=type
format of the table to index ('b', 'd', 'conv')
Option for command describe
-?, --help
print an help message
AUTHOR
dbatbl has been written by Enrico Zini <enrico@enricozini.com> for ARPA Emilia Romagna, Servizio Idrometeorologico.
may 16, 2012 DBATBL(1)