0
votes
2answers
38 views

Is there a way to show “File not found” or a message alike when using the `find` command?

I'm trying to check the existence of several files, without knowing in advance where the files are located. So, I thought of find as the de facto utility to do this... It works as expected, but the ...
3
votes
1answer
306 views

Delete old log files in AIX

I am trying write a script to delete old log files in \var\log\applog\nmon on my AIX system. We usually get alerts that the file system is almost full and at the moment delete old files by hand. So ...
0
votes
1answer
1k views

Using find with -exec gzip and grep

I have a bunch of zipped up log files and I want to search them all for a string. I tried this but it's not working: find ./ -name "*.log.zip" -exec gzip -dc {} | grep ERROR \; It's giving me: ...
0
votes
3answers
176 views

How to find faster in linux

I have some directory with funny character such as ^M at their back. They were created accidentally and I want to delete them. I list the directories by ls -iql and wrote down their inode number, ...
3
votes
2answers
2k views

AIX: find non-empty directories

In many unix systems, you could do something like find . -type d ! -empty In an AIX system, -empty doesn't seem to be recognized. Any ideas on how I could do the same thing?