[...]
>for i in access*
>do
>       cat i$ >> filename
>done
>
>but this doesn't concatenate them quite the right way. I was looking to
>append them together in order, so they would be seamless - in other
words
>February 15th would be the ending in one file, and Feb 16th would be
the
>start in the next.     

You are using >>, the append operator. This will never clear the file
out from run to run. Make sure you delete the file before the loop. Now,
if the alphabetical order expansion of 'access*' is not to your liking,
you will have to spell the order out in full.

        cat f.4 f.1 f.2 f.4 >filename

Note that this also gets rid of appending to stale files. If this is
tedious, and the filenames never change, you could

        cat >mylist
        f.3
        f.4
        f.1
        f.2
        ^D

and then from then on you just run:

        cat `cat mylist` >filename

DL


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to