The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Shell Programming and Scripting
[ ! -z $4 ]
Tags
shell scripts
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Top Forums
Shell Programming and Scripting
[ ! -z $4 ]
#
1
02-17-2009
himvat
Registered User
69,
0
Join Date: Nov 2008
Last Activity: 10 May 2011, 10:19 AM EDT
Posts: 69
Thanks Given: 0
Thanked 0 Times in 0 Posts
[ ! -z $4 ]
Hi ,
Code
:
What is the significance of " $ " in [ ! -z $4 ] .
Kindly guide.
Regards
himvat
View Public Profile for himvat
Find all posts by himvat
#
2
02-17-2009
zaxxon
Registered User
6,575,
572
Join Date: Sep 2007
Last Activity: 5 November 2019, 9:08 AM EST
Location: St. Gallen, Switzerland
Posts: 6,575
Thanks Given: 179
Thanked 572 Times in 484 Posts
! = not
-z = true if empty
$4 = positional parameter number 4
zaxxon
View Public Profile for zaxxon
Find all posts by zaxxon
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×