Mime-Version: |
1.0 (Apple Message framework v753) |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Thu, 24 Apr 2008 23:12:20 -0400 |
Content-Type: |
text/plain; charset=US-ASCII; delsp=yes; format=flowed |
Content-Transfer-Encoding: |
7bit |
Reply-To: |
|
Parts/Attachments: |
|
|
Dear Scripters,
I'd like to concatenate a bunch of files in a directory, in
sequential order. Since the files' names start with the same
characters, and end in dates, I can get a nice, ordered file list
from the ls command. What I'd like to do is to pipe this file list to
cat in such a way that it will concatenate the files, not just the
names.
The filenames look like this:
notes-20080401, notes-20080402, notes-20080403, notes-20080404,
notes-20080405, etc.
And what I'd like to do is something like this:
ls notes-* | [??] | cat > notes
The [??] is the part I can't figure out.
|
|
|