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)
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)
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 have two types of file
1. temp.0000000001.data (10 digit numeric)
2. temp.000000001.data (9 digit numeric)
i want to search a file which is having 10 digit numeric in between the file name.
i use command like this..
ls | grep temp.^*.data
but this will give both the files as... (2 Replies)
Hi,
I have a fixed length file where I need to verify the values of 3 different fields, where each field will have a different value.
How can I do that in a single step. (6 Replies)
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)
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 DB2 UDB 9.7 SQL script, as follows:
I need to pass the script into Unix and generate a fixed length file from this.
Can someone kindly provide a script to achieve it?
SELECT
CAST(COALESCE(CL_ID,'000000000') AS CHAR(9)) AS CL_ID
,STATUS... (5 Replies)
I have a file abc.csv, from which I need column 24(PurchaseOrder_TotalCost) to get the sum_of_amounts with date and row count into another file say output.csv
abc.csv-
UTF-8,,,,,,,,,,,,,,,,,,,,,,,,,
... (6 Replies)
Discussion started by: Tahir_M
6 Replies
LEARN ABOUT HPUX
mailq
mailq(1) General Commands Manual mailq(1)NAME
mailq - prints the mail queue
SYNOPSIS DESCRIPTION
prints a summary of the mail messages queued for future delivery.
The first line printed for each message shows the internal identifier used on this host for the message, the size of the message in bytes,
the date and time the message was accepted into the queue, and the envelope sender of the message. The second line shows the error message
that caused this message to be retained in the queue; it will not be present if the message is being processed for the first time. The
status characters are:
to indicate that the job is being processed
to indicate that the load is too high to process the job
to indicate that the job is too new in the queue to process.
The output lines that follow the second line show the message recipients, one per line.
is identical to
Options
The supported options are:
Show the mail submission queue specified in the
file instead of the MTA queue specified in the file.
Show the lost items in the mail queue instead of normal queue items.
Show the quarantined items in the mail queue instead
of the normal queue items.
Limit processed jobs to those containing
substr as a substring of the queue ID or not when is specified.
Limit processed jobs to quarantined jobs containing
substr as a substring of the quarantine reason or not when is specified.
Limit processed jobs to those containing
substr as a substring of one of the recipients or not when is specified.
Limit processed jobs to those containing
substr as a substring of the sender or not when is specified.
Print verbose information.
This adds the priority of the message and a single character indicator or blank) indicating whether a warning message has
been sent on the first line of the message. In addition, extra lines may be intermixed with the recipients indicating the
`controlling user' information. This shows who owns the programs that are executed on behalf of this message and the name
of the alias this command expanded from, if any.
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
AUTHOR
was developed by the University of California, Berkeley, and originally appeared in 4.0BSD.
FILES
mail queue files for
SEE ALSO sendmail(1M).
mailq(1)