[sclug] Couple of questions

lug at assursys.co.uk lug at assursys.co.uk
Sat Oct 25 09:05:34 UTC 2003


On Mon, 3 Mar 2003, Andy Arbon wrote:

> I've got 2 simple questions that some of you more experienced Unix gurus
> may be able to help me with..
> 
> 1) Is there a way to get an Xterm to notice that it has been resized? If
> ~ I start an Xterm and then maximise it it sometimes completely mangles
> input lines that would have been too long for the un-maximised Xterm.
> It's hard to describe; if you don't see what I'm on about I'll try and
> write a better description.

Sometimes

	eval `resize` # note backquotes
	reset

will sort it. Other times it won't. :-]

> The other problem:
> 2) I have 2 text files each containing a list of files. (say txt1 and
> txt2). All files in txt1 are also in txt2, but there are files in txt2
> that are not in txt1. I want to be able to separate out the files which
> do not appear in both.. What is the best way?
> 
> Diff doesn't seem to do it (unless there is some weird combination of
> parameters that makes it work?).

Try sorting both the txt1 and txt2 first, then run diff between the sorted
versions.

> Andy

Best Regards,
Alex.
-- 
Alex Butcher        Brainbench MVP for Internet Security: www.brainbench.com
Bristol, UK                        Need reliable and secure network systems?
PGP/GnuPG ID:0x271fd950                           <http://www.assursys.com/>



More information about the Sclug mailing list