Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:34:18+00:00 2026-05-31T05:34:18+00:00

I am having a problem with the parsing and comparison of data as follows.

  • 0

I am having a problem with the parsing and comparison of data as follows.

thinningCriteria="$(cat thinningCriteria$j.k)"
minThickElement="$(cat minimumThickness$j.k)";
d= "$(cat BHF$j.k)";
echo $d
echo $minThickElement
echo $thinningCriteria  

for d it gives errror as follows, so this is the first problem.

N o r m a l    t e r m i n a t i o n
./dynaOffenRigid.sh: line 137: 1000: command not found

where

d= "$(cat BHF$j.k)";   is on line 137  and the file has a value of 1000 

secondly I have to compare two values like below

if (( $minThickElement -lt $thinningCriteria ))

then

fi

in this case the error is as follows.

999979
986667
./dynaOffenRigid.sh: line 147: ((: -lt 986667 : syntax error in expression (error token is "986667 ")

the only value in BHF$j.k is 1000
the only value in thinningCriteria$j.k    is   999979
the only value in minimumThickness$j.k    is   986667   

I dont know what am I doing wrong when I am comparing, and why there is are error for my shell.
please all tell me the usage of while loop I used

while [ $minThickElement -gt $thinningCriteria ]  but same error.

I expect some suggestions from experts. As I cant find the solution.

best regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:34:19+00:00Added an answer on May 31, 2026 at 5:34 am

    problem 1:
    change

    d= "$(cat BHF$j.k)";
    

    to

    d="$(cat BHF$j.k)"
    

    problem 2:

    try

    [[ $minThickElement -lt $thinningCriteria ]]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with relationships between to entities in Core Data. I'm parsing
I am having problem in parsing the xml data, below is my code URL
i'm having a problem with parsing the json data from hello.json to the current
Hello friends i am having problem in parsing jSON web services data I have
I'm having a problem parsing the data being returned by my WCF web service.
Hi im having problem parsing this pinterest JSON file, any ideas? thanks $json =
I'm having a problem parsing some string data in powershell and need a little
I'm having a problem parsing a JSON file in AS3. Im trying to parse
Hi I am currently having a problem with parsing an Xml string without any
Additional questions regarding SilentGhost's initial answer to a problem I'm having parsing Twitter RSS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.