08-15-2007
Thanks mate, works pretty well that's exactly wat I was looking for
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
what does this command do ? as in
does this command just make sure everything in the file is executed?
or does it flush the file?
Actually this is used on a file in a progress database but I believe it is a unix command? (2 Replies)
Discussion started by: rocker40
2 Replies
2. UNIX for Dummies Questions & Answers
I have AIX5.1
I have been trying to learn how to truncate the /var/adm/wtmp file.
I have seen several things on google actually but don't quite understand. I also searched your forums but couldn't find it.
one says this ">/var/adm/wtmp
Is that all I do?
I have a seperate question also. I was... (1 Reply)
Discussion started by: rocker40
1 Replies
3. Shell Programming and Scripting
Hello everybody it's me again.
I have a procces that is writing in a 'file1' automatically but i want to truncate 'file1' to a filesize 'x' that mean if the 'file1' size is 'x' i want to delete the first lines while the last lines are being writed, that have sence?
in the process are an... (1 Reply)
Discussion started by: Lestat
1 Replies
4. Shell Programming and Scripting
Hi,
I was working on the truncate oracle table shell script. The script is supplied with one table name as a parameter and I would like to change it so that it is passed a file name with a list of tables. And the script needs to truncate tables one by one by looping through the file. In other... (10 Replies)
Discussion started by: madhunk
10 Replies
5. Shell Programming and Scripting
I have one file which first line is blank and second line has some data.
$cat filename
output:
30-MAY-07
I want to store 30-MAY-07 value in one variable.
for that I wrote
var="`head -2 filename`"
It will give that result but I want to truncate the first line which is blank.
plz help. (2 Replies)
Discussion started by: rinku
2 Replies
6. UNIX for Dummies Questions & Answers
I am using FC6 just in case it matters, though i hope it doesn't.
If i have a file or some files that i want to truncate the filename of, so that it is only a certain number of characters in length, how would i do that on the command line?
Also, just to make it more interesting, say i... (11 Replies)
Discussion started by: Calum
11 Replies
7. Shell Programming and Scripting
Hi
In unix able to connect to oracle database and create table ,when rerun ,if table exist ,truncate that table.Any idea how to do that
a.sh
----
sqlplus -s datadmin/password <<EOF
create table xx(col1 number,
col2...
);
exit;
EOF
I... (1 Reply)
Discussion started by: mohan705
1 Replies
8. Shell Programming and Scripting
Hi Gurus,
I have several log files running in real time and needs to be truncated 50% or all but has to keep the logs piling up. Any ideas?
For example: /var/adm/messages and others apps log files
Thanks in advance! (7 Replies)
Discussion started by: anonymous1
7 Replies
9. UNIX for Dummies Questions & Answers
hi All,
how to recover the truncate file in unix.
Thanks!:wall: (2 Replies)
Discussion started by: krbala1985
2 Replies
10. Shell Programming and Scripting
Hi friends,
I have a file of this kind
chr1 3180929 3181465 48
chr1 3196182 3196586 26
chr1 3343498 3343814 25
chr1 3351126 3351383 16
I did some calculations on the 4th column using the following command.
chr1 3180929 3181465 48 2.94665e-061000000... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
LEARN ABOUT DEBIAN
px_put_data_bcd
PX_PUT_DATA_BCD(3) Library Functions Manual PX_PUT_DATA_BCD(3)
NAME
PX_put_data_bcd -- Put value into a bcd data field
SYNOPSIS
#include <paradox.h>
void PX_put_data_bcd(pxdoc_t *pxdoc, char *data, int len, char *value)
DESCRIPTION
Converts a bcd string into a value for a data field as it stored in the database file. The string may only contain the charcters `+', `-',
`0-9', and `.'. You should use this function instead of accessing the record data directly.
data points to the start of the data field in the record. It must be calculated by summing up all field length before the field to operate
on and add it to the base pointer of the record.
SEE ALSO
PX_put_data_alpha(3), PX_put_data_long(3), PX_put_data_double(3), PX_put_data_short(3), PX_put_data_byte(3), PX_put_data_bytes(3)
AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_PUT_DATA_BCD(3)