Search Results

Search: Posts Made By: RLOA
4,065
Posted By RLOA
It works now. Here is the script. But when I copy...
It works now. Here is the script. But when I copy this into different file and execute it, it again gives the same error.


#!/bin/bash

flag=0

for p1 in A1 TM MP
do
for p2 in A1 TM...
4,065
Posted By RLOA
@ahamed, Yeah, I have kept spaces after...
@ahamed,

Yeah, I have kept spaces after opening and before closing braces. Still this error keeps on popping up.
4,065
Posted By RLOA
Thanks a ton guys for replying! I made the...
Thanks a ton guys for replying!

I made the changes and script works now. But now I'm getting following errors.


./script.sh: line 25: [: N1==: unary operator expected
./script.sh: line 25:...
4,065
Posted By RLOA
Error in if condition string comparison
Hello all! I need help in debugging following script. I have no idea where I am going wrong.


#!/bin/bash
for p1 in A1 TM MP
do
for p2 in A1 TM MP
do

for mp1 in N1 N2
do
...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy