Mailinglist Archive: opensuse (1872 mails)

< Previous Next >
[opensuse] Re: nocomment?
  • From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Sat, 08 Nov 2008 12:55:01 +0100
  • Message-id: <49157E15.4060809@xxxxxxxxxxxxxxxxxxxxxxx>
Jon Clausen wrote:
On Fri, 07 Nov, 2008 at 03:24:32 -0600, David C. Rankin wrote:

03:11 ecstasy~> nocomment /etc/sensors3.conf
chip "f71882fg-*"
label temp1 "CPU Temp"
label temp2 "System"
ignore temp3
label fan1 "CPU Fan"
ignore fan2

<snip>

That's neat :)

Where'd you get it?

opensuse 11.0:
YaST -> sw management -> search(Name, Summary, Description, 'RPM Provides')
"nocomment"
=> "No results"

Grin! It's probably just a little shell script:

/usr/bin/nocomment:
-------------------------
#!/bin/sh
function usage {
echo " usage: $0 -h|-?"
echo " $0 /path/to/file"
echo ""
echo " -h|-? show this help"
echo " Please give the file to show without comments as argument!"
echo ""
exit 0
}

if [ $# -ne 1 ]; then
usage
exit 1
else
egrep -v '^#' $1
fi

------------------------


--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups