I have a directory /home/max/delivery/process
That contains that files 5nnnn 2nnnn and Innnn I wish to define a variable so that it can determine what type of file is present within the /home/max/delivery/process area.
ie.Whether it is a 5 2 or I file - Can this be done ie:
filename=/home/max/delivery/process/TYPE_OF_FILE
echo $TYPE_OF_FILE
Should return 5 2 or I
Have i made this clear ?
That contains that files 5nnnn 2nnnn and Innnn I wish to define a variable so that it can determine what type of file is present within the /home/max/delivery/process area.
ie.Whether it is a 5 2 or I file - Can this be done ie:
filename=/home/max/delivery/process/TYPE_OF_FILE
echo $TYPE_OF_FILE
Should return 5 2 or I
Have i made this clear ?