9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Seeking for your assistance on how to condition it correctly.
if the fourth column contains 888s and 0s it is by... (16 Replies)
Discussion started by: znesotomayor
2. Shell Programming and Scripting
I am using below if condition to check whether null is passed as a parameter to the program
if or ;
However it is saying me null=null command not found . Please help me with this (9 Replies)
Discussion started by: Hypesslearner
3. Shell Programming and Scripting
I am in the process of learning perl.I have a perl script and based on the arguments passed it would the appropriate subroutine that is defined in the script.
Now, I need to check a value that is defined in the Environment variables and should call the subroutine only if the... (1 Reply)
Discussion started by: filter
4. Shell Programming and Scripting
I'm a newbie here, I'm just wondering how can i disable my 1st sed command if there's no file found on Yes_Directory and process instead the No_Directory because there's a file found on it.
if ; then
sed -i... (8 Replies)
Discussion started by: nikki1200
5. Shell Programming and Scripting
I want to check if all element of an array have the same value regardless the length of the array.
@array1 = qw(44 44 44 44);
@array2 = qw(55 55 55 55 55 55 55);
Ahmed (11 Replies)
Discussion started by: ahmed_zaher
6. Shell Programming and Scripting
I need to use if condition for search a file pattern on a particular location.
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
7. Shell Programming and Scripting
$output1 = "/home/log.txt"
$output2 = "/home/grep.txt"
#Statement1 creates an output file called log.txt.
#Statement2 greps a line from log.txt and store the result in grep.txt
I want to create a condition where if the file grep.txt is empty repeat process.
Thanks. (1 Reply)
Discussion started by: sureshcisco
8. Shell Programming and Scripting
I am trying the following simple script . But it is always giving 1 output. Dont know why
find . -name "a.log"
if ; then
Kindly advice. it is giving 1 output even when the a.log file is not there (26 Replies)
Discussion started by: himvat
9. Shell Programming and Scripting
pls consider the following if statement
if //g') ]
when i execute the script i am getting the following error
I am not able to find the mistake.
could anybody tell where i did mistake.
RRK (13 Replies)
Discussion started by: ravi raj kumar