01-19-2006
Problem with exponentials while adding in HP-UX
Hi,
Facing some issues while adding due to exponentials in HP-UX 11.00 ora@ps:/var/tmp> cat dbrec.log
MAX(SEQUEN
----------
1000299
1 row selected.
ora@ps:/var/tmp> NEXT_NUM=`awk '/^ /{print $1 + 1}' dbrec.log`
ora@ps:/var/tmp> export NEXT_NUM
ora@ps:/var/tmp> echo $NEXT_NUM
1.0003e+06
How can I avoid this ?
Thanks
Vinit
Last edited by win_vin; 01-19-2006 at 08:55 AM..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a log file with contents like
81.49.74.131 - -
81.49.74.131 - -
116.112.52.31 - -
116.112.52.31 - -
I need an output like this
81.49.74.131 14/Sep/2008 Time duration: 00:06:00
116.112.52.31 15/Sep/2008 Time duration: 00:00:01
Please anyone suggest a script for this.... (1 Reply)
Discussion started by: FuncMx
1 Replies
2. Solaris
Hi experts,
i have added a new disk to my ultra 10 system, after that i am unable to boot the system, its not booting from disk neither from cd.
please help!
Regards (16 Replies)
Discussion started by: kumarmani
16 Replies
3. AIX
Hello All,
While trying to add NIM client to the NIM environment from NIM client machine, I get the following error:
1800-109
There are currently no additional SMIT screen entries available for this item. This may require installation of additional software before it can be accessed.
... (1 Reply)
Discussion started by: solaix14
1 Replies
4. Shell Programming and Scripting
Hi,
Kindly assist by analyzing the code below and suggest changes to achieve the required output.
The input file:
01-010241800000 35000 MV010 02/03/09 0306 03060226 03
02-004103300000 470000 MV010 02/03/09 0301 03010276 03
The objective is to convert field No4. from dd/mm/yy to yyyymmdd... (5 Replies)
Discussion started by: talk2pawee
5 Replies
5. Shell Programming and Scripting
Hi,
I have a file "input.txt" with the following content :
5312,0,,,1,8,141.2,20090727
3714,0,,,1,8,285.87,20090727
5426,0,,,1,8,3.9,20090727
3871,0,,,1,8,30.4,20090727
9071,0,,,1,8,146.2,20090727
5141,0,,,1,8,2.8,20090727
0460,0,,,1,8,-0.1,20090727
7918,0,,,1,8,-0.1,20090727... (3 Replies)
Discussion started by: valokv
3 Replies
6. Red Hat
Hello i tryed add SunOS system to Spacewalk and see this error:
# cat /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
... (1 Reply)
Discussion started by: jess_t03
1 Replies
7. Red Hat
OS: Fedora Linux 11
Spacewalk: 0.6
Installed by manual: https://fedorahosted.org/spacewalk/wiki/HowToInstall
I download special script (create_channel.py) for registarion client from CLI and added 3 channel with 32-Bit architecture and all OK:
Fedora 11 32-Bit
RHEL 4.7 32-bit
RHEL 5.3... (2 Replies)
Discussion started by: jess_t03
2 Replies
8. UNIX for Advanced & Expert Users
I wan to add a new user. I have executed the following command. The user home directory is created.
but password creation shows error.
Note: I'm using LDAP Server for user authentication.
adduser xxx
Adding user `xxx' ...
Adding new group `xxx' (1003) ...
Adding new user `xxx' (1003) with... (2 Replies)
Discussion started by: ungalnanban
2 Replies
9. UNIX for Advanced & Expert Users
Hi All,
Please let me know the error in the below code.
m=(0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)
M=$(date +%m)
Y=$(date +%Y)
if ; then
M=01
Y=$(($Y+1))
else
M=$M+1)printf "01-%s-%d\n" ${m} $Y
fi
Log:
+ m=(0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)
++... (4 Replies)
Discussion started by: kiranparsha
4 Replies
LEARN ABOUT DEBIAN
save_binary_logs
SAVE_BINARY_LOGS(1p) User Contributed Perl Documentation SAVE_BINARY_LOGS(1p)
NAME
save_binary_logs - Concatenating binary or relay logs from the specified file/position to the end of the log. This command is automatically
executed from MHA Manager on failover, and manual execution should not be needed normally.
SYNOPSIS
# Test
$ save_binary_logs --command=test --binlog_dir=/var/lib/mysql --start_file=mysqld-bin.000002
# Saving binary logs
$ save_binary_logs --command=save --binlog_dir=/var/lib/mysql --start_file=mysqld-bin.000002 --start_pos=312
--output_file=/var/tmp/aggregate.binlog
# Saving relay logs
$ save_binary_logs --command=save --start_file=mysqld-relay-bin.000002 --start_pos=312 --relay_log_info=/var/lib/mysql/relay-log.info
--output_file=/var/tmp/aggregate.binlog
save_binary_logs concatenates binary or relay logs from the specified log file/position to the end of the log. This tool is intended to be
invoked from the master failover script(MHA Manager), and manual execution is normally not needed.
DESCRIPTION
Suppose that master is crashed and the latest slave server has received binary logs up to mysqld-bin.000002:312. It is likely that master
has more binary logs. If it is not sent to the slave, slaves will lose all binlogs from mysqld-bin.000002:312. The purpose of the
save_binary_logs is to save binary logs that are not replicated to slaves. If master is reachable through SSH and binary logs are readable,
saving binary logs is possible.
Here is an example:
$ save_binary_logs --command=save --start_file=mysqld-bin.000002 --start_pos=312 --output_file=/var/tmp/aggregate.binlog
Then all binary logs starting from mysqld-bin.000002:312 are concatenated and stored into /var/tmp/aggregate.binlog. If you have binary
logs up to mysqld-bin.000004, the following mysqlbinlog outputs are written.
mysqld-bin.000002:Format Description Event(FDE), plus from 312 to the tail mysqld-bin.000003:from 0 to the tail, excluding FDE
mysqld-bin.000004:from 0 to the tail, excluding FDE
perl v5.14.2 2012-01-08 SAVE_BINARY_LOGS(1p)