LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08: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, 09: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


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


All times are GMT -5. The time now is 01:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration