Searched all over can't figure out how to compare variables of alpha and numeric characters.
Example a script that ask user to enter a password and then ask to repeat the password. (6 Replies)
Hi guys, How do I compare two variables using diff?
The way I'm thinking:
#!/bin/sh
a=cat asdf.x | wc -l
b=cat asdf.y |cut -d',' -f5 |grep -v '^$' |wc -l
diff $a $b
How to rewrite the above sciprt using only one line in command prompt? (2 Replies)
Is there any way to compare two strings for a greater or less than condition? For example, StringA is "apple" and StringB is "bonnet" and StringC is "captain". Can I only test for equal/not-equal, or is there a way to find out whether StringA is less than StringB, and StringC is greater than... (6 Replies)
Hi,
My first post to this group...
I have a need to to parse a source file which is a capture from a network analyser.
I have two fields that need to be checked:
- Field 7 represents the packet length (an integer), and
Field 4 represents a network address (e.g. 192.168.25.3)
- The... (10 Replies)
Hi All,
I got this script that pulls the Amps value from our RPC's , I basiclly want to compare the valued with a "limit" value -- if the numbers match or are greater than the definded value ...do something. My problem is I cant seem to figure out how to compare floating points...
here is... (1 Reply)
ok this is probably going to turn out to be something really stupid but i've tried to use the following command in a script but the output is just a blank screen and i have to use Ctrl c to exit it.
awk 'BEGIN {printf "%.2f\n", '${bashArray}'>='$Variable' {print '${bashArray}'}}'
the command... (2 Replies)
I am running some commands and I am trying to get an output into a variable. I am having problem when I try to put that value in while loop, it says integer value expected. What's the best way to accomplish this
remaining=$(symclone -sid XXX -f Clone_test query | grep MB | awk '{print... (1 Reply)
Hey guyz,
I have a table which shows the presence or absence of my variables (A,B,C,...) in my observations (1,2,3,...)
* A B C ...
1 1 0 1
2 1 1 0
3 1 0 0
...
I want to calculate the co-presence of my variables. to have a table shows the pairwise presence of the variables (have... (1 Reply)
Hi
PRIM_SEQ=`some sql code`
and output of PRIM_SEQ is like below
120
130
STB_SEQ=`some sql code`
and output of STB_SEQ is like below
115
110
i need to compare this two variables output ( decimal numbers)
1) What I want to do is to compare every number in the PRIM_SEQ with... (8 Replies)
compare two variables and print the difference
i have two variables
X1=rac1,rac2
Y1=rac2,rac3
output=rac1,rac3
Use code tags to wrap code fragments or data samples. (1 Reply)
Discussion started by: jhonnyrip
1 Replies
LEARN ABOUT OSF1
pwd
pwd(1) General Commands Manual pwd(1)NAME
pwd - Displays the pathname of the current working directory
SYNOPSIS
pwd
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
pwd: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
None
OPERANDS
None
DESCRIPTION
The pwd command writes to standard output the full pathname of your current working directory. All directories are separated by a /
(slash). The first / represents the root directory and the last directory named is your current working directory.
EXIT STATUS
The following exit values are returned: Successful completion. An error occurred.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of pwd: Provides a default value for the internationalization variables that are
unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari-
ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value,
overrides the values of all the other internationalization variables. Determines the locale for the format and contents of diagnostic mes-
sages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES.
SEE ALSO
Commands: cd(1), csh(1), ksh(1), Bourne shell sh(1b), POSIX shell sh(1p)
Functions: stat(2), getcwd(3)
Standards: standards(5)pwd(1)