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 09: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 02: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 10:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-05-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,229
I'm as confused as vgersh99 here, I don't see any concept here nor do I see any logic to a such a redundant piece of code.
  #2 (permalink)  
Old 02-06-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Even i do agree....
I have not read these concepts in any bash shell scripting guide.
Could you please clarify in detail ?
  #3 (permalink)  
Old 02-06-2008
risshanth risshanth is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 64
Unhappy Hi..

My script is as follows:

SRC=$INPUT_FILE
SIZE=$(cksum $SRC | awk '{print $2}')
if [[ $SIZE < 1 ]] ; then
ls /nosuchdir
fi


The $INPUT_FILE is received as an argument to this script. This was developed by somebody else. So I am trying to understand the code. I got confused when i saw "ls /nosuchdir" . There will never be a directory under name "nosuchdir" in the whole file system. So what does this mean ??

I heard that people will use like this, and there is some concept behind this. Even I too don't know about hat and much confused...

So, please friends help me out...
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 12:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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