I am new to shell scripting so i need some help need how to go about with this problem.
I have a directory which contains files in the following format. The files a
Use:
ls -r -1 AA_*.dat | head -n 1
(assuming there are no other files matching AA_*.dat)
AA_*.dat