Mark Haney wrote:
count=xx
for i in $(ls <something>* | sort) ; do
^^^^^^^^^^^^
The |sort isn't necessary since the shell always returns wild-card
expansions in sorted order. In fact the ls isn't necessary either since
the shell has already generated the list.
for i in something*
will do the same thing.
file_num=$(cut --delimiter=_ -f1 $i)
while [ $count -lt $file_num ] ; do
echo Missing file number $count
count++
done
done
This is great. I think now I have enough pieces to make something work.
I appreciate all the help.
The above doesn't help if you lose the 1st or last bunch of files. Do
you always get the same set every day?
--
Les Mikesell
lesmikesell@xxxxxxxxx
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list