#!/bin/ksh
for i in *.log*
do
ls $i|
sed 's/\.log$//g' | while read file
do
echo "file $file is Running" >> lls.txt
echo "***************">> lls.txt
done
done
------------------------------------------------------------------
the output is :
file AdapterCCProvisioningInterface is Running
**************************************************************************************************** *******
file AdapterCCProvisioningInterface.log.1 is Running
**************************************************************************************************** *******
file AdapterCCProvisioningInterface.log.2 is Running
---------------------------------------------------------------------
but i want only 1st kind of file as o/p.......it should not display .log or .log.1 or likewise
only filename before .log like in 1st..........
i have some 170 files like that.plz help me in this