I have a find statement with awk that works but I want to eliminate the permission denied output messages such as this example: find: cannot read dir ./proc/449: Permission denied. They seem to come up with some of my searches. My find
does get the data I need but I dont want to see these Permission denied messages coming up on my screen.
Here is the find statement:
[tt]
find . -name "$dat" -exec ls -Fd {} \; | awk '{.............}'[/tt]
I have tried fitting in the [tt] 2> /dev/null[/tt] in my find statement but it still shows the permission denieds on my find.
Any suggestions??
does get the data I need but I dont want to see these Permission denied messages coming up on my screen.
Here is the find statement:
[tt]
find . -name "$dat" -exec ls -Fd {} \; | awk '{.............}'[/tt]
I have tried fitting in the [tt] 2> /dev/null[/tt] in my find statement but it still shows the permission denieds on my find.
Any suggestions??