Monday, 24 October 2011

Concatenating several files in order

Concatenating several files in order

Hi, I currently have about 60 files in a directory, and I need to concatenate them in order. They have names such as:

OBS_DOMAIN101
OBS_DOMAIN102
OBS_DOMAIN103
...

If I were to just do a simple:

cat OBS_DOMAIN* > output.txt

would this concatenate them all in the order they are listed? If not, how would I do this fairly easily?

Thanks.

No comments:

Post a Comment