Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

isnum(1) [debian man page]

ISNUM(1)							   User Commands							  ISNUM(1)

NAME
isnum - AME SYNOPSIS
Return 1 if argument is an integer, 2 if it is floating point, else 0 DESCRIPTION
isnum 3.8.4 June 2012 ISNUM(1)

Check Out this Related Man Page

values(5)							File Formats Manual							 values(5)

NAME
values - machine-dependent values SYNOPSIS
DESCRIPTION
This file contains a set of manifest constants, conditionally defined for particular processor architectures. The model assumed for integers is binary representation (one's or two's complement), where the sign is represented by the value of the high-order bit. The number of bits in a specified type (e.g., int). The value of a short integer with only the high-order bit set (in most implementations, 0x8000). The value of a long integer with only the high-order bit set (in most implementations, 0x80000000). The value of a regular integer with only the high-order bit set (usually the same as or The maximum value of a signed short integer (in most implementations, 0x7FFF == 32767). The maximum value of a signed long integer (in most implementations, 0x7FFFFFFF == 2147483647). The maximum value of a signed regular integer (usually the same as or The maximum value of a single-precision floating-point number, and its natural logarithm. The maximum value of a double-precision floating-point number, and its natural logarithm. The minimum positive value of a single-precision floating-point number, and its natural logarithm. The minimum positive value of a double-precision floating-point number, and its natural logarithm. The number of significant bits in the mantissa of a single-precision floating-point number. The number of significant bits in the mantissa of a double-precision floating-point number. FILES
SEE ALSO
intro(3), math(5). STANDARDS CONFORMANCE
values(5)
Man Page

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help-send mail script

Hi, I have written one script for sending mails with attachment. currently its working for only one recipient. I want to send mails to n number of users by taking user input i.e number of users. Output of current script: Enter how many files : 1 Enter First Name : kiran E-Mail... (2 Replies)
Discussion started by: kiran_j
2 Replies

2. Shell Programming and Scripting

[Solved] Testing Data Type of User Input

hi all i'm new in shell scripting and now i'm working on project and i wanna make a function take input from user and test it's datatype then if correct write it to file i wounder what is the best way to do this ? can i use awk ? edit by bakunin: Please give your threads a meaningful... (5 Replies)
Discussion started by: mohamed91
5 Replies

3. Shell Programming and Scripting

Match string against character class in bash

Hello, I want to check whether string has only numeric characters. The following code doesn't work for me #!/usr/local/bin/bash if ]]; then echo "true" else echo "False" fi # ./yyy '346' False # ./yyy 'aaa' False I'm searching for solution using character classes, not regex.... (5 Replies)
Discussion started by: urello
5 Replies

4. Shell Programming and Scripting

Get values block by block in same file

I have a file say "SAMPLE.txt" with following content, P1 10,9:6/123456 P2 blah blah P1 10,9:5/98765 P2 blah blah P1 blah blah P2 I want a output file say "RESULT.txt" as, Value1:123456 Value2:98765 Value3:NULL (17 Replies)
Discussion started by: garvit184
17 Replies

5. Shell Programming and Scripting

Help with shell script

#Check if the argument is numeric isNumeric() { numericExpression='^+$' if ! ] then echo 1; else echo 0; fi } getColumnData() { echo `echo $1|cut -d "," -f1,2 --output-delimiter " "` } containsSegment() {... (7 Replies)
Discussion started by: ramyags
7 Replies

6. UNIX for Dummies Questions & Answers

Validate numerical

friends that way I can validate that the value is numeric taken instance var = 12re if var = numeric then a echo "Numerical else echo "not mumerico" fi edit by bakunin: please use CODE-tags for code, data and terminal output (yourself). (9 Replies)
Discussion started by: tricampeon81
9 Replies

7. Shell Programming and Scripting

Average across multiple columns group by

Hi experts, I want to group by average, for multiple columns starting column $7 until NF, group by ($1-$5), please help For just 7th column, I can do awk ' NR>1{ arr += $7 count += 1 } END{ for (a in arr) { print a, arr/count ... (10 Replies)
Discussion started by: ritakadm
10 Replies

8. Shell Programming and Scripting

Bash regex evaluation not workin

I'm building a script that may received start and end date as parameters. I whant to make it as flexible as possible so I'm accepting epoch and date in a way that "date --date=" command may accept. In order to know if parameter provided is an epoc or a "date --date=" string I evaluate if the value... (2 Replies)
Discussion started by: lramirev
2 Replies

9. Shell Programming and Scripting

Subroutine or Function Summary

I have a fortran file with code declarations such as Subroutine str_tnum_tu & ( & s, dl, tu, pos & ) ! Class (*), Intent (InOut) :: tu(:) Character (Len=*), Intent (In) :: s, dl Character (Len=*), Intent (In), Optional :: pos ... or ... (11 Replies)
Discussion started by: kristinu
11 Replies

10. Shell Programming and Scripting

Bash to verify and validate file header and data type

The below bash is a file validation check executed that will verify the correct header count of 10 and the correct data type in each field of the tab-delimited file. The key has the data type of each field in it. My real data has 58 headers in it but only the header and next row need to be... (6 Replies)
Discussion started by: cmccabe
6 Replies