[Gllug] Tab-complete and cursor keys in SSH sessions?

Bruce Richardson itsbruce at workshy.org
Tue Sep 29 11:06:59 UTC 2009


On Tue, Sep 29, 2009 at 11:57:41AM +0100, - wrote:
> On Mon, Sep 28, 2009 at 9:55 PM, Nix <nix at esperi.org.uk> wrote:
> 
> > But, as you point out, nobody ever uses it for anything other than
> > printing out a terminfo entry. This is as useful a piece of naming as
> > 'cat' (because *of course* what everyone would use cat for would be to
> > concatenate files, because you do that *all the time*, far more often
> > than you, say, view them.)
> 
> I tried sooo hard to avoid responding to this, I really did. But being
> the pendant that I am, I have to point out that yes, I use cat for
> concatenating files far more frequently than I use it for viewing
> their contents. There are better tools for doing that. Hell, even when
> I started using Unix 20+ years ago, you could use more (or pg for the
> SysV inclined), and less was starting to become widely available, too.

I frequently use cat to splice standard input into a sequence of files.
Here's a question I once put to a bunch of students I was teaching:

"If I have the following in /etc/crontab:

05 06 * * 5 root /usr/bin/find /usr /bin /sbin -type f -perm +4000 | cat \
        /root/suid.orig /root/suid.orig - | sort | uniq -u


Then
        a) What am I doing?
        b) How does it work?
        c) Why is /root/suid.orig named twice?"

-- 
Bruce

It is impolite to tell a man who is carrying you on his shoulders that
his head smells.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090929/ad99b516/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list