LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-16-2009, 12:13 AM   #1
hattori.hanzo
Member
 
Registered: Aug 2006
Posts: 168

Rep: Reputation: 15
BASH -le parameter


I have a script and have been trying to look up what is the -le parameter.

Code:
 [ $i -le $n ]
regards,
 
Old 01-16-2009, 12:17 AM   #2
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 243

Rep: Reputation: 32
it stands for less than

see "man bash" for more information

Last edited by chakka.lokesh; 01-16-2009 at 12:19 AM.
 
Old 01-16-2009, 08:27 AM   #3
amnesiavivace
LQ Newbie
 
Registered: Sep 2008
Location: Ohio
Distribution: suse, redhat, ubuntu, fedora
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by hattori.hanzo View Post
I have a script and have been trying to look up what is the -le parameter.

Code:
 [ $i -le $n ]
regards,


its a test command that evaluates $i is less than or equal to $n
 
Old 01-16-2009, 08:40 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by chakka.lokesh View Post
it stands for less than
or equal

Quote:
see "man bash" for more information
I would not expect a newcomer to find something like this in "man bash" (I couldn't without major effort.)

Much better to go to tldp.org and get the Bash Guide for Beginners
 
Old 01-17-2009, 02:15 AM   #5
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 243

Rep: Reputation: 32


oops...!! sorry for wrong information. I should have read the post properly.
 
Old 01-17-2009, 02:17 AM   #6
chakka.lokesh
Member
 
Registered: Mar 2008
Distribution: Ubuntu
Posts: 243

Rep: Reputation: 32
Quote:
Originally Posted by pixellany View Post
I would not expect a newcomer to find something like this in "man bash" (I couldn't without major effort.)

Much better to go to tldp.org and get the Bash Guide for Beginners
Next time onwards, I will take care of this.
 
  


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
LXer: Bash Parameter Expansion LXer Syndicated Linux News 0 10-02-2008 03:40 PM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM
bash parameter indirection possible? kornelix Programming 5 11-30-2005 08:35 AM
bash: pass a parameter to xview nimra Programming 2 06-28-2004 09:18 PM
Bash function parameter Misel Programming 2 05-17-2003 11:51 AM


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