Checking in a directory how many files are present and basing on that merge all the files

view story

http://www.unix.com – Hi, My requirement is,there is a directory location like: :camp/current/ In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated in a single day and merge them all into a single file. Note:header should come in the single file. Thank you! (HowTos)