Question

  Asked: Nov 14 2007   7:42 AM GMT
  Asked by: Pramod06


What is the meaning of -n ?


Shell scripts

What is the meaning of -n, in this expression. if [[ -n "$1" ]]

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Returns "true" if the length of the string is non zero.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Linux.

Looking for relevant Linux Whitepapers? Visit the SearchEnterpriseLinux.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register