Subject: Re: testing presence of a device (was sun-lamp CVS commits)
To: None <thorpej@nas.nasa.gov>
From: Patrick Arnoux <parnoux@orli.com>
List: current-users
Date: 10/10/1995 01:41:30
Sorry about the last message, but it's one that got away!
In any case Thorpe wrote:
> > ...is impractical. My install.sh for the hp300 basically does:
> >
> > dmesg | grep "^sd" | grep "slave"
> > dmesg | grep "^rd" | grep "slave"
> >
Pipe the output through "sort -u", that will get rid of the duplicates.
as in:
dmesg | grep "^sd" | grep "slave" | sort -u
dmesg | grep "^rd" | grep "slave" | sort -u
possibly not very clever, but it works ;)
Patrick Arnoux
parnoux@orli.com