[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find error stream is annoying

From: Tomas
Subject: find error stream is annoying
Date: Wed, 08 Jul 2020 11:17:16 -0300
User-agent: Zoho Mail


If I try to search for the file hsbc I use the following command 'find -name 
*hsbc*'. Unfortunately, if there are directories I have no permission for, the 
stderr output completely opaques any useful answers.
I'm aware there are workarounds, but I needed to find a file in a pinch, and it 
wasn't an appropriate time to search for unix pipe syntaxes.

Do not print the error messages if the file has been found ;) If the file has 
not been found and some directories cannot be accessed print an error that 
explains that the file could not be found, THEN let the user know about the 
locked drawers and ask for their keys.

Thank you for your time.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]