Odd message from find command


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Odd message from find command
# 1  
Old 02-10-2010
Odd message from find command

Running the find command as: find /abc -follow -ls gives, for some files, the message, which I have never seen before:

find: /abc/def/123.txt: No error

Does it mean that find found the file with out error. If it found it without error then why did it not output the "ls" particulars as with all the other files it find successfully?

Thanks...
# 2  
Old 02-11-2010
I see some contradictory messages in the man pages of 'find', so I would suggest reading the man pages for your version of 'find', the answer should be there. To me, the error message may mean that some of the listed files are actually a symbolic links.
# 3  
Old 02-11-2010
Interesting that. As it turns out it is not at all clear which version of find is actually being used and results differ in the way the find is executed. If done as a remote execution the "no error" message appears. If ssh into the server and the same command is run the message does not appear.

In the server I cd'ed to the dir just above the one where the message was generated and found that the entity was as directory, not a link nor a file. That directory has permissions drwxr--r--. ls on the directory shows one file name and ls -l on the directory gives the file name and "permission denied". I'm guessing the file does not have world read permission and there for will not allow the ls -l to present the ls particulars regarding the file.

Last edited by twk; 02-11-2010 at 09:42 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find to delete lines with pattern and even or odd number

In the below directory I am trying to delete all lines with a .bam extention that have the pattern IonCode_ followed by an even number. I am also trying to delete all lines with a .fastq extention that have the pattern IonCode_ followed by an odd number. I was going to use find but can see all... (6 Replies)
Discussion started by: cmccabe
6 Replies

2. Shell Programming and Scripting

Find a string in all files and echo a message

Hi. I m trying to figure out how to do this. I have a directory full of files (100 files) and I want to be able to search for a string called "end" at the end of the files (last line or last 5 lines) and echo each file to say "incomplete" if not found. This is what I have so far. ---... (4 Replies)
Discussion started by: jasonhawaii
4 Replies

3. UNIX for Dummies Questions & Answers

Find Null values in Columns and fail execution by displaying error message

Hi All, I am new to shell scripting. I have a requirement as part of my job to find out null/empty values in column 2 and column 3 from a CSV file and exit the further execution of script by displaying a simple error message. I have developed a script to do this by reading various articles... (7 Replies)
Discussion started by: tpk
7 Replies

4. Shell Programming and Scripting

Avoding the ERROR message while using find,move commands

Hi All, We just need to move a set files to a Archive location and then delete the files older than 1 day. I used the below commands respectively. When the file exist it is working. But when the file doesnt exist, in the ouptput log file it is showing "NO MATCH". How to avoid this in... (1 Reply)
Discussion started by: krishna1234
1 Replies

5. Shell Programming and Scripting

Find odd numbered items from a csv

Hi, This question might seem bit confusing. Sorry for that. I have tried to express myself as clear as possible. I have a text file in following format: abc_456_def,abc_457_def,123_458_def,abc_3_459_def,zbc_123_456_def ybc_123_457_def,xbc_3_458def,ybc_124_457_def I want to check the... (3 Replies)
Discussion started by: ctrld
3 Replies

6. Shell Programming and Scripting

mail command behave odd

hi, The following mail cmd executed successfully. mailx -s 'subject' user@company.com < testfile.dat However When i include this mail cmd in shell script it behave odd. Getting an error message mailx comand not found. (2 Replies)
Discussion started by: zooby
2 Replies

7. UNIX for Dummies Questions & Answers

Uniq command behaving odd

My file has k s j v l k a s f l k s a d f j l a s (3 Replies)
Discussion started by: phoenix_nebula
3 Replies

8. Red Hat

ls command with a welcome message !

Dear Friends , Is it possible to generate a welcome message when I give the command "ls" from a particular user's home directory in Unix/Linux platform ? suppose , in following example , bash-3.00# whoami root bash-3.00# ls When I give ls command then it shows the output as... (2 Replies)
Discussion started by: shipon_97
2 Replies

9. Shell Programming and Scripting

ksh - odd output from for command...

Help needed - I am sure there is something to do with tabs or white space that is killing me here.. I have a file that is generated from an oracle sql script - when I cat the file I see the below 601888725 14-AUG-08-10:20 3 601888726 14-AUG-08-10:37 ... (4 Replies)
Discussion started by: frustrated1
4 Replies

10. Solaris

Error Message: find: cannot open /: Stale NFS file handle

I am using the "find" command below and it respond with the error message " find: cannot open /: Stale NFS file handle" what does it mean? what can I do about it? Need advice, thanks. below are the command that I enter, the respond and the error message: root@ScripServer:/# find / -name... (1 Reply)
Discussion started by: ezsurf
1 Replies
Login or Register to Ask a Question