10-18-2012
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello!
I have a file with fixed record length...
format:
123445asdfg 4343777 sfgg
I wanna convert it to
123445,asdfg ,4343,777 ,sfgg
is there any way to do it?
sed/grep/awk??
at the moment I use sed -e 's_ \(\)_,\1_g'
but it works only if there are spaces between... (16 Replies)
Discussion started by: george_
16 Replies
2. Shell Programming and Scripting
Hi,
I have a KSH shell script running on hpux that uses the fl command - ex:
cat /foo | fl 50 > bar
This command will take each record in the file foo, make it 50 characters long and then write it to the file bar. my problem is that I am porting my scripts over to solaris which doesn't... (2 Replies)
Discussion started by: Tom Siegel
2 Replies
3. UNIX for Dummies Questions & Answers
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
4. Shell Programming and Scripting
Hi,
I have a problem, please help me,
I have a flat file like this:
P00000000088888888999999999 0000999903 000000000000000000
P00000000077777777000000000 0000999903 000000000000000000
P00000000044444444333333333 0000999903 00000000000000000079875
P00000000066666666111111111 0000999903 ... (5 Replies)
Discussion started by: DebianJ
5 Replies
5. Shell Programming and Scripting
Hi Guys,
I wanted to print the length of each record and the record itself.
I tried the following awk ...
awk 'a=length(); {print $a,$0}' file1
But it is giving me the records instead of length.
and also, it giving me each record twice. Means the value of a is not the length of the... (0 Replies)
Discussion started by: mac4rfree
0 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
I have records with different lengths say 386, 387 and 388. Do i have any command to view all the records of the length 386 ? Please do advise.
Thanks (2 Replies)
Discussion started by: bobby1015
2 Replies
8. Shell Programming and Scripting
Hi all,
We are going through a total migration from AIX-based server framework to Linux-based servers. When I am testing *.sh and *.awk in a lower environments, it abends at the same step everytime in verifying the record length of the first row of the source file.
I know this source file... (11 Replies)
Discussion started by: SoloXX
11 Replies
9. Shell Programming and Scripting
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
px_set_targetencoding
PX_SET_TARGETENCODING(3) Library Functions Manual PX_SET_TARGETENCODING(3)
NAME
PX_set_targetencoding -- Set encoding for output
SYNOPSIS
#include <paradox.h>
int PX_set_targetencoding(pxdoc_t *pxdoc, const char *encoding)
DESCRIPTION
Sets the target encoding for all alpha fields. It is used when data is retrieved from a record. The encoding must be a name as it is
described by the man and info pages of recode or iconv whatever is used. A common value is `latin1' on Unix systems. If you
do not set the encoding the function PX_get_data_alpha(3) will return field data in the original encoding otherwise it will recode the
field data.
This function is a short cut form PX_set_parameter(pxdoc, "targetencoding", encoding) and is deprecated.
RETURN VALUE
Returns -2 if recoding is not supported and a value < 0 in case of an error, otherwise 0.
SEE ALSO
PX_get_data_alpha(3), PX_set_inputencoding(3), PX_set_parameter(3), iconv(1), recode(1)
AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_SET_TARGETENCODING(3)