Hi EveryB
Iam writting a shell script which needs to pick a file (one by one)from the directory and do certain processing on it.
The files in the dir appear in the following format:
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2501-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2501-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2501-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2503-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2503-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2505-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2505-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2507-01050216-.log
-rw-r--r-- 1 arbor arboradm 470714 Feb 16 02:13 TAP2509-01050216-.log
I am getting an error if i try to list the file name which is not present.Is there any possible way to solve this prblm.
eg:
while [ ls -ltr TAP25$count* ]
do
// certain Processing.
count = `expr count + 2`
done
Thanks in Advance,
Arun