Awk - to test multiple files "read" permission ?

Hi Masters,

Iam new to this Forum and this is my first post.

My question is:

I've some datafiles belongs the type (A, B, C) in the location 'export/home/lokiman '

dataA1.txt
dataB28.txt
dataC35.txt

1) I've to check the read permission for each file, if it not there then I've to that print the file name and exit.

2) If the read permission present, then I've to copy the data contents into one output file "output.txt".

3) Also I've to check for the file types (A, B, C) for the datafiles. Atleast one file should be present for each type. Otherwise script should abort.

This can be done by shell script using multiple steps. But now the requirement is to through "AWK".

I know this is time consuming and challenging. But I would appreciate for even your small help in this regard.

Cheers ~~/Lokiman

look at the output of "ls -l" and awk off the read/write bytes.