Less surprised

Alexander Skwar listen at alexander.skwar.name
Mon Jul 3 13:32:52 UTC 2006


JD wrote:
> Christofer C. Bell wrote:
>> On 7/2/06, JD <xifilsuf at yahoo.com> wrote:
>>> I've just found out that 'less all* >> ball' in Ubuntu is just not gonna
>>> append all all* files into ball!
>>> So I use more.
>>> This is strange though.
>>
>> I guess what I find strange is that you're not using cat(1) for that. ;-)
>>
> Then why when I use more it works?

Who cares? more is a different program.

> To pipe it to cat is just redundant.

??

What are you trying to accomplish? If you wish to append the
contents of all the "all" files in "ball", then

	cat all* >> ball

If you wish to *view* all the files with less, you'd do:

	less all*

If you wish to combine those tasks, you'd use tee:

	cat all* | tee -a ball | less

Alexander Skwar
-- 
Zoe: "Sir, I think you have a problem with your brain being missing."




More information about the ubuntu-users mailing list