LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2008, 07:35 AM   #1
jack olson
LQ Newbie
 
Registered: Sep 2008
Location: endicott,ny
Posts: 4

Rep: Reputation: 0
Placeholders for values not avalible :


Being new to the scripting in linux , I have tried using examples in Tutorial. echo $[x"*"y] doesn't resolve, it just displays $[x"*"y].
expr doesn't work ether.If I use values it works. What am I not doing.
Thank you , jack
 
Old 09-25-2008, 08:13 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Code:
x=2
y=3
echo $[x*y]
# gives
6
You don't need the quotes on the asterisk.
 
  


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
image placeholders on firefox 1.5.0.1 win32sux Slackware 8 03-28-2006 08:50 AM
Truetype for Fedora Core 3 Avalible? keysorsoze Fedora - Installation 3 01-17-2005 11:31 AM
MySQL omits my 0 placeholders familyman Programming 2 09-02-2004 11:01 PM
rx/tx values Nauseous *BSD 1 05-26-2004 02:06 PM
How do I find out the size and avalible spce of HD? tenraek Linux - Hardware 3 02-19-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 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