![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sigempty what means? | Puntino | UNIX for Dummies Questions & Answers | 1 | 04-28-2008 05:44 AM |
| what these statements means | namishtiwari | UNIX for Dummies Questions & Answers | 1 | 01-16-2008 10:20 PM |
| what it means? | rraajjiibb | UNIX for Dummies Questions & Answers | 4 | 08-31-2004 10:36 AM |
| What does ##* means | yeheyaansari | UNIX for Advanced & Expert Users | 2 | 02-14-2002 05:39 AM |
| what is means by tar xvr - | E-Quality | UNIX for Dummies Questions & Answers | 2 | 09-24-2001 06:48 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 ?? |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
Could you elaborate, pls?! |
|
||||
|
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 |
|
|||
|
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... |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| 421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive gzip password hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script |