Sponsored Content
Full Discussion: If condition problem
Top Forums Shell Programming and Scripting If condition problem Post 302954696 by wisecracker on Thursday 10th of September 2015 08:04:18 AM
Old 09-10-2015
Just querying:-

Are you sure you are looking for the four ASCII characters 'null' or do you really mean "" as a null.

If so this might be what you are looking for:-
Code:
if [ "$3" = "" ] || [ "$4" = "" ]

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If condition problem

Hi Guys, I want to use if conition for my script. Before I used it tried it with some small test scripts. But it was not succeeded. My script and screen output as follows, Script: echo 'Do you think Yes or No (y/n) : ' read ans echo You input anser as $ans ans1=y if ( $ans == $ans1... (5 Replies)
Discussion started by: maheshsri
5 Replies

2. Shell Programming and Scripting

problem with if condition

hi, :) pls consider the following if statement if //g') ] then ........ else ....... when i execute the script i am getting the following error '(' unexpected I am not able to find the mistake. could anybody tell where i did mistake. cheers RRK (13 Replies)
Discussion started by: ravi raj kumar
13 Replies

3. Shell Programming and Scripting

problem in if condition

hi, actully i need the belp for the below. host_list=" Host1 host2 host3 host4 " n=`hostname` i need to put the condition like the below if n is among the host mention in the host_list if then #some stugg else # some other stuff fi (1 Reply)
Discussion started by: mail2sant
1 Replies

4. Shell Programming and Scripting

problem in if then else condition

Hi , I am trying the following simple script . But it is always giving 1 output. Dont know why #!/bin/sh find . -name "a.log" if ; then echo "1" else echo "0" fi Kindly advice. it is giving 1 output even when the a.log file is not there (26 Replies)
Discussion started by: himvat
26 Replies

5. Shell Programming and Scripting

Problem in using AND OR condition together

a=rhino b=crocodil c=testsc if && "$c" = testsc ] then echo "Test #5 succeeds." else echo "Test #5 fails." fi i need to test or condition before check the output with AND condition. ur help is much appreciated... (11 Replies)
Discussion started by: gokulraj23
11 Replies

6. Shell Programming and Scripting

Problem in if condition

Hi all, I have task to delete two different files from all file system. one is core file & other is old file. i can delete core file but for old file i have to mv in different location. i wrote a script but it is not working. i have a two variables in this script first one is delcnt &... (6 Replies)
Discussion started by: dravi_laxmi
6 Replies

7. Shell Programming and Scripting

If condition problem

Hi, I need to use if condition for search a file pattern on a particular location. cd $file_Path if || then do this else do that fi Can someone help me with the if part, how i can put those conditions? make sure format should be *.file* and *.file file is a keyword which i... (5 Replies)
Discussion started by: amit.mathur08
5 Replies

8. Shell Programming and Scripting

Problem with IF condition .

Hi i am writing a script where i am running , 5 scripts together in 1 script . Now what i want is when these 5 scripts run completely , i should execute some other commands like i have compile the data etc. I have have 5 echo statements at the end of all those scripts . Like echo "1 is done" in... (1 Reply)
Discussion started by: honey26
1 Replies

9. Shell Programming and Scripting

Condition problem

Hi All, Seeking for your assistance on how to condition it correctly. cat file1.txt 290,1663,43,888,0,0.00,86.91,0.00,26.98,0.00 290,1663,52,0,0,0.00,0.00,0.00,0.00,0.00 290,1663,52,888,0,0.00,34.60,0.00,9.00,0.00 1st scenario: if the fourth column contains 888s and 0s it is by... (16 Replies)
Discussion started by: znesotomayor
16 Replies
a64l(3C)																  a64l(3C)

NAME
a64l(), l64a() - convert between long integer and base-64 ASCII string SYNOPSIS
Obsolescent Interface DESCRIPTION
These functions are used to maintain numbers stored in base-64 ASCII characters. This is a notation by which long integers can be repre- sented by up to six characters; each character represents a "digit" in a radix-64 notation. The characters used to represent "digits" are for 0, for 1, through for 2-11, through for 12-37, and through for 38-63. The leftmost character is the least significant digit. For example, a0 = (38 x 64^0) + (2 x 64^1) = 166 takes a pointer to a null-terminated base-64 representation and returns a corresponding value. If the string pointed to by s contains more than six characters, uses the first six. takes a argument and returns a pointer to the corresponding base-64 representation. If the argument is 0, returns a pointer to a null string. Obsolescent Interface converts between long integer and base-64 ASCII string. WARNINGS
The value returned by is a pointer into a buffer, the contents of which are overwritten subsequent calls by the same thread. is an obsolescent interface supported only for compatibility with existing DCE applications. New multithreaded applications should use SEE ALSO
thread_safety(5). STANDARDS CONFORMANCE
a64l(3C)
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy