LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2003, 05:44 PM   #1
codename000
LQ Newbie
 
Registered: Mar 2003
Posts: 15

Rep: Reputation: 0
Smile another equivalent to c question?


i wonder what is the replacement for modulus in shell script?

i want to do a remainder check for say
if (120%10 ==4)
printf "hello!!\n";

is there such a replacement?? thx in adv
 
Old 04-15-2003, 06:01 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
Bash:

ACTION OPERATOR
Addition +
Subtraction -
Multiplication *
Division /
Modulus %
 
Old 04-15-2003, 08:28 PM   #3
codename000
LQ Newbie
 
Registered: Mar 2003
Posts: 15

Original Poster
Rep: Reputation: 0
so it's more or less the same then??
let me see....




yeah, sorted my problem...dunno y it gave me errors before...anyway, thx a lot man!!
 
Old 04-16-2003, 04:40 AM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
no problem :-)
 
  


Reply



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
Equivalent to setDefaultJava? JordanH Red Hat 0 09-15-2005 11:50 AM
equivalent for wstring pippet Programming 4 12-30-2004 04:00 PM
Where can I get bsetbg or an equivalent? SocialEngineer Linux - Software 1 12-05-2004 03:53 PM
Dreamweaver MX Equivalent madhatteruk Linux - Software 2 08-01-2004 03:42 PM
equivalent to c? codename000 Programming 3 04-03-2003 11:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:48 PM.

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