LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-30-2022, 12:25 PM   #1
spriyada
LQ Newbie
 
Registered: Nov 2022
Posts: 1

Rep: Reputation: 0
I am getting the following error : if: Empty if. This is part of the code . When this is introduced I am getting the above said error .


Please correct the code or the syntax :

if ( $1 =~ "core" && $3 =~ "165")
then
{
sed -ie "s?parameter PRTIME .*?#parameter PRTIME \nparameter PRTIME = 3.300000;?g" $1_chain.v
}
elif ( $1 =~ "top" && $3 =~ "ss" )
then

{
sed -ie "s?parameter PRTIME .*?#parameter PRTIME \nparameter PRTIME = 3.000000;?g" $1_chain.v
}
else
{
sed -ie "s?parameter PRTIME .*?#parameter PRTIME \nparameter PRTIME = 2.500000;?g" $1_chain.v
}
fi
 
Old 11-30-2022, 12:30 PM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,994

Rep: Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863Reputation: 2863

So what have you tried and where are you stuck?

Is this a homework question?

What language is that code supposed to be?

https://www.linuxquestions.org/questions/faq.php?faq=welcome

Always use "[code]..[/code]" tags to preserve formatting.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] umount said /dev/sdd is not mounted; yet lsblk said it is mounted to /run/media/ ? andrewysk Linux - Newbie 8 05-29-2021 04:29 PM
Compiz Standalone: Some applications above "above"? Vinter Linux - Desktop 0 04-05-2014 04:44 PM
I said, "howdy;" she said, "hi." NoTinyFlacid LinuxQuestions.org Member Intro 1 11-21-2010 08:27 PM
LAMP installation with apache(2.2 or above),php(5.1.4 or above)),mysql(4 or above) mobquest Linux - Newbie 2 08-31-2009 12:01 AM
when following was introduced in kernel? asahlot Linux - Kernel 1 09-14-2006 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration