[Gllug] Neat trick with compressed files

Ian Scott mriscott at yahoo.co.uk
Fri Aug 27 15:07:06 UTC 2004


> 
> I've always had a vague intention to write a script to automate this. 
> Just today however I accidentally typed:
> 
> $ vi /usr/share/doc/<mumble>/README.gz
> 
> (I was using tab completion and didn't realise it was a .gz file) and
> pow!, vi reads it just fine.

Just a word of warning:  This uncompresses the whole file.

zmore/zless are much better for e.g. big logfiles.

Ian

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list