The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sigempty what means? Puntino UNIX for Dummies Questions & Answers 1 04-28-2008 08:44 AM
what these statements means namishtiwari UNIX for Dummies Questions & Answers 1 01-17-2008 02:20 AM
what it means? rraajjiibb UNIX for Dummies Questions & Answers 4 08-31-2004 01:36 PM
What does ##* means yeheyaansari UNIX for Advanced & Expert Users 2 02-14-2002 09:39 AM
what is means by tar xvr - E-Quality UNIX for Dummies Questions & Answers 2 09-24-2001 09:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-05-2008
risshanth risshanth is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 64
What does ls /nosuchdir means ???

I do have a segment in my code like follows:

if [ condition ] then
ls /nosuchdir
fi


what does the ls /nosuchdir means ??
  #2 (permalink)  
Old 02-05-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
provide listing of files

The ls /nosuchdir command will give a listing of files in the /nosuchdir directory. Beware, since the directory is preceded by the / means that you are looking to the root of your system and not referencing from where you are currently.
  #3 (permalink)  
Old 02-05-2008
risshanth risshanth is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 64
Hi joeyg

I doubt whether you are aware /nosuchdir ...
"nosuchdir" is not a directory .. Its a concept in shell scripting..

So please let me know that...
  #4 (permalink)  
Old 02-05-2008
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,116
Quote:
Originally Posted by risshanth View Post
I doubt whether you are aware /nosuchdir ...
"nosuchdir" is not a directory .. Its a concept in shell scripting..

So please let me know that...
hmmm... what 'concept' is that?
  #5 (permalink)  
Old 02-05-2008
Dave Miller's Avatar
Dave Miller Dave Miller is offline
Registered User
  
 

Join Date: Dec 2007
Location: Northern NJ, USA
Posts: 151
Here's a shot in the dark:

Since the file doesn't exist, the 'concept' is a quick and easy method of producing output that also affects the error flags.
  #6 (permalink)  
Old 02-05-2008
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,116
Quote:
Originally Posted by Dave Miller View Post
Here's a shot in the dark:

Since the file doesn't exist, the 'concept' is a quick and easy method of producing output that also affects the error flags.
I'm not sure I can 'parse' what's being said here!
Could you elaborate, pls?!
  #7 (permalink)  
Old 02-05-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Smile Is this some kind of trick question?

Check for a condition
If the condition is true
Then list files in the directory

Perhaps the vagueness, or "conceptualness", is confusing people

Provide actual script code
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0