Hi
You could first discard the CDBACKUPFILE string by using a substring command based on the length of this first parameter.
Then use a filter to remove any number from your string, or alternatively a substring command if your seq number has a fixed length.
I don't give you the code as I don't have the time to test it I just hope this will indicate you how to do the job.
Hi, here's a suggestion. i dont hv unix on this comp so plz try it out n lemme know the results
ls -l|while read line
do #the followng will first cut out the CDBACKUPFILE, then using awk, i'll specify #0 as the field delimiter and print out the first field, which will be the name
cut -c 1-12|awk -F"0" '{print $1}'>file.txt
done