Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: Did I get in?


Article: 7811 of alt.hackers
From: js10039@thor.cam.ac.uk (J. Sullivan)
Newsgroups: alt.hackers
Subject: Re: Did I get in?
Date: 12 May 1995 20:19:02 GMT
Organization: University of Cambridge, England
Lines: 29
Approved: zzzzzzzzz
Message-ID: 3p0frm$d3c@lyra.csx.cam.ac.uk
NNTP-Posting-Host: hammer.thor.cam.ac.uk
Status: RO

In article <3ovrv4$j5v@larch.cc.swarthmore.edu>,
Jeremy Todd Dilatush <dilatush@raptor.sccs.swarthmore.edu> wrote:
>Steven M. Loranz (sloranz@xantham.res-hall.nwu.edu) wrote:
>: didn't want.  I know...this is lame and is well known amongst the UNIX
>: gods...but I felt good that I could fix it without too much thought
>
>Using "cat" to edit a file is damn simple (I do it because
I'm too lazy often
>to fire up emacs or learn vi) ... using it when you need to fix something
>should count as a hack, though.
>
>A _real_ hack is when you don't have "cat" so you write a script
>(ObHack:)
>#!/bin/sh
>tee /dev/null
>

-- /etc/fstab (say) --
/dev/hda1 / ext2 defaults 0 0
/dev/hdb1 /usr/local ext2 defaults 0 0
--

sed -e 's/^\(\/dev\/hdb1\)/#\1/' /etc/fstab >/tmp/fstab
#(or just /^\/dev\/hdb1/D )
mv /tmp/fstab /etc/fstab


John





Parent Parent

Back to index