Re: shellscipts

Ron <[email protected]> Wed, 12 Mar 2025 00:47:00 -0700
Newsgroups gmane.org.user-groups.linux.cabal
Message-ID <[email protected]>
Michael Paoli wrote on 2025-03-11 18:57:

> $ more * | cat
> ::::::::::::::
> color
> ::::::::::::::
> orange
> green
> green
> orange
> ::::::::::::::
> fruit
> ::::::::::::::
> orange
> orange
> apple
> apple
> $
> If more has multiple file arguments, and its stdout isn't a tty
> device, it simply
> outputs the contents of the files, prepended by a header giving the file name.

Interesting!


Without the `cat`, it (`more`) prompts between files (i.e. "stdout isn't 
a tty").


Finally a use case for `more`, first one since DOS / OS/2 days.

I don't know where I'd use this, but I like to have the knowledge stored 
away should I have a use for it.



The whole message was informative; more like this please.