HI
i have many files like *****4567***
*****4568***
****4569***
so i need a script to check the sequence numbers of the files
can any one help me
Thanx
HI
i have many files like *****4567***
*****4568***
****4569***
so i need a script to check the sequence numbers of the files
can any one help me
Thanx
What do you mean by 'check the sequence'? This gets the sequence number from each file and then sorts the output numerically.
ls |
while read file
do
echo "$file | tr -cd '[:digit:]'
echo
done | sort -n