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"
Repos; http://download.opensuse.org/distribution/11.0/repo/oss/ http://download.opensuse.org/distribution/11.0/repo/non-oss/ http://download.opensuse.org/repositories/KDE%3a/Qt/openSUSE_11.0/ http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSU... http://download.opensuse.org/update/11.0/ http://ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Tools/openSUSE_11.0
TIA /jon
Sorry, here is nocomment: #!/bin/bash if [[ -z "$1" ]]; then echo -e "\n\n\tUsage: ./nocomment <filename>" echo -e "\n\n\tWill parse the text file and remove all blank lines and all lines beginning \ \n\twith an '#' or ';'. It is useful for looking at configuration files.\n" exit 1 fi sed -e '/^[ \t\n\r]*$/d' -e '/^\s*[#;]/d' <$1 exit 0 It just strips comment lines and blank lines from config files -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org