Subject: Re: testing presence of a device (was sun-lamp CVS commits)
To: None <email@example.com>
From: Patrick Arnoux <firstname.lastname@example.org>
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.
dmesg | grep "^sd" | grep "slave" | sort -u
dmesg | grep "^rd" | grep "slave" | sort -u
possibly not very clever, but it works ;)