Sponsored Content
Full Discussion: Cannot store integer value
Top Forums Shell Programming and Scripting Cannot store integer value Post 302184111 by Franklin52 on Thursday 10th of April 2008 01:31:35 PM
Old 04-10-2008
It's against the:

https://www.unix.com/unix-dummies-que...om-forums.html

to bump up questions!
 

9 More Discussions You Might Find Interesting

1. IP Networking

how to pass integer

i am writing a client and server program client program main() { int sockfd,n; char str; struct sockaddr_in sock; if ((sockfd=socket(AF_INET,SOCK_STREAM,0))<0) { perror("SOCKET ERROR"); } bzero(&sock,sizeof(sock)); sock.sin_family=AF_INET; (1 Reply)
Discussion started by: ramneek
1 Replies

2. Shell Programming and Scripting

get integer part

Hi, I did a df|awk| command and it returns a percentage "94%", how could I only get the integer part "94" out of it, so I can compare it to another number, I knwo that I have to pipe it to sth, but "grep " did not work, it still give me number WITH the percentage, does someone know what... (3 Replies)
Discussion started by: ericaworld
3 Replies

3. UNIX for Dummies Questions & Answers

integer to string

Hi all, is there an easy way to convert integer to string in bash? I have numbers like 1, 2, ..., 112, ... and I would like to get 001 002 003 004 ... Thank you, Sarah (4 Replies)
Discussion started by: f_o_555
4 Replies

4. Shell Programming and Scripting

Alphanumeric to integer

Hi folks, I have a value like A12,i could able to change this into integer using typeset as below typeset -i A12 But, I need your advice to change the values like 1A2 or 12A into integer. Thanks in advance. Thanks, Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies

5. Solaris

How to Use a Variable as Integer?

hello, i am writing a script that takes the UID from the PASSWD and then i want to increse the Number by one. for the Next user. i cannot get this to work that a variable is as interger example: set i = 0 set $i = $+1 it's in tcsh if it's mather (10 Replies)
Discussion started by: shatztal
10 Replies

6. Shell Programming and Scripting

how to compare string integer with an integer?

hi, how to I do this? i="4.000" if ; then echo "smaller" fi how do I convert the "4.000" to 4? Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies

7. Shell Programming and Scripting

String to integer

I am on HP-UX using ksh in the script. MaxSal=`sqlplus -silent /nolog <<EOF connect / as sysdba whenever sqlerror exit sql.sqlcode set pagesize 0 feedback off verify off heading off echo off select max(sal) from emp1; select max(sal) from emp2; select max(sal) from emp3; exit; EOF`... (3 Replies)
Discussion started by: bang_dba
3 Replies

8. Solaris

Integer Validation

Hi Using the below logic to check whether the value is integer or not and converting the value to decimal if not. int_chck = sprintf(substr($i, 1, 2)) o_cnt = 'if ; then echo $int_chck; else echo $((0x$int_chck)); fi' Thanks, Dines (4 Replies)
Discussion started by: dineshnak
4 Replies

9. Programming

Are These All The Integer Types In C

Hello and Good day, I am currently studying C and I just finished learning about variables mainly those of integer type. I am wondering if the list below are all there is to integer variables and there are still more that i have to learn. Here are the list: Char Short int long long long... (3 Replies)
Discussion started by: split_func0
3 Replies
WWWBrowser(3pm) 					User Contributed Perl Documentation					   WWWBrowser(3pm)

NAME
WWWBrowser - platform independent means to start a WWW browser SYNOPSIS
use WWWBrowser; WWWBrowser::start_browser($url, -oldwindow => 1); DESCRIPTION
start_browser($url [, %args]) Start a web browser with the specified URL. The process is started in background. The following optional parameters are recognized: -oldwindow => $bool Normally, the URL is loaded into a new window, if possible. With "-oldwindow" set to a false window, "WWWBrowser" will try to re-use a browser window. -browser => $browser Use (preferebly) the named browser $browser. See "CONFIGURATION" for a some browser specialities. This option will only work for unix. CONFIGURATION
For unix, the global variable @WWWBrowser::unix_browsers can be set to a list of preferred web browsers. The following browsers are handled specially: lynx, w3m Text oriented browsers, which are opened in an "xterm", "kvt" or "gnome-terminal" (if running under X11). If not running under X11, then no background process is started. kfmclient Use "openURL" method of kfm. netscape Use "-remote" option to re-use a running netscape process, if possible. _default_gnome Look into the "~/.gnome/Gnome" configuration file for the right browser. _default_kde NYI. The following variables can be defined globally in the main package: $os Short name of operating system ("win", "mac" or "unix"). &status_messages Error handling function (instead of default "warn"). REQUIREMENTS
For Windows, the Win32Util module should be installed in the path. AUTHOR
Slaven Rezic <slaven@rezic.de> COPYRIGHT
Copyright (c) 1999,2000,2001,2003 Slaven Rezic. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Win32Util. perl v5.10.0 2009-03-10 WWWBrowser(3pm)
All times are GMT -4. The time now is 12:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy