On 9 July 2014 17:11, Chris Green cl@isbd.net wrote:
This really sounds simple but I can't think of a neat way of doing it, I want to test (in bash) if there's any file with a specific suffix in a particular directory.
Print the filenames in the directory and grep for the suffix at the end of the line?
Or write a C program to do it? That way, you could re-use that whenever you need to write a similar script.
Regards, Srdjan