10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Below is my ksh shell script where I need to check if variable fileprops is a subset of $1 argument.
echo "FILE PROPERTY: $fileprops"
echo "PARAMETER3: $1"
if ; then
echo "We are Good. $line FILE is found to be INTACT !! "
else
echo... (2 Replies)
Discussion started by: mohtashims
2 Replies
2. Shell Programming and Scripting
Hello,
I want to see if element exists in array, if so then, check it's corresponding value.
Column 4 is position and column 1 is the chromosome for it. There are duplicates for one position on one chromosome.
I want to check if same position exists on different chromosome:
Data... (8 Replies)
Discussion started by: genome
8 Replies
3. Shell Programming and Scripting
Hi All,
I am new to perl I am stuck in simple problem I need your help
I want to define a subroutine.
sub check_if_entity_exists(@array_to_be_checked,$entityName)
I have array as
http-listener-1
http-listener-2
http-listener-3
http-listener-4
If i send http-listener-3 my... (1 Reply)
Discussion started by: javaholics
1 Replies
4. Shell Programming and Scripting
hello,
i have a variable which should have following content :
var="value1"
or
var="value2"
or
var="value2:*" # example: value2:22
how can i check :
- if the content is ok (value1 / value2* )
- the two options of "value2"
when content is example "value2:22" , i want to split... (3 Replies)
Discussion started by: bora99
3 Replies
5. Shell Programming and Scripting
Greetings,
DISCLAIMER: My shell scripting is rusty so my question may be borderline stupid. You've been warned.
I need to create a script that a) lists the content of zip files in a directory and b) sends out an `exception` report. My ZIP files contain a control file (for load check). I want... (2 Replies)
Discussion started by: alan
2 Replies
6. Windows & DOS: Issues & Discussions
Hello,
I am trying to assign $string = $a; #a= 10100
print " $string"; # showing 10100
I am using this $string as $result = index($string, $char, $offset);
As above, is not capturing binary nos. in following format;
$string = '10100';
so index is not working.
kindly suggest. (5 Replies)
Discussion started by: shristi
5 Replies
7. UNIX for Dummies Questions & Answers
hi to all,
i want to check the value of a variable that it contains characters.
for example i try the following:
if then .........
i just want to check that in the specific line that is a variable called "passline" has the entry "password". But it can contain also other characters in the... (4 Replies)
Discussion started by: omonoiatis9
4 Replies
8. UNIX for Advanced & Expert Users
hi
I have an if condition that states:
if ; then
exit
how to translate this?
$x is a path
$y is a string that comes at the end of the path
thx (11 Replies)
Discussion started by: melanie_pfefer
11 Replies
9. UNIX for Dummies Questions & Answers
I am passing an argument to a file and i wanna check whether the argument is a number or string ?
how can i do this? (4 Replies)
Discussion started by: rolex.mp
4 Replies
10. Shell Programming and Scripting
hi,
I have a variable var1 as follows in the script.
var1="one two three desformat=PDF xyz"
I would like to check whether $var1 has a string "desformat=PDF" or not.
Is there any command I can use (not need to creat a file)?
Currently, I am using this:
if ( grep "desformat=PDF"... (1 Reply)
Discussion started by: josephwong
1 Replies