Article View: news.software.nntp
Article #69266Re: Diablo + FreeBSD 4.9 + md/vnconfig
From: Dr.Ruud
Date: Thu, 27 May 2004 12:44
Date: Thu, 27 May 2004 12:44
27 lines
1785 bytes
1785 bytes
Dr.Ruud:
> Cor Bosman:
>> set swfs = `grep swap /etc/fstab | grep -v '^#' | awk '{print $1}'`
> Alternatives:
>
> grep -v '^[[:space:]]#' /etc/fstab | grep
> '[[:space:]]swap[[:space:]]' | awk '{print $1}'
>
> sed -n
> '/^[[:space:]]*#/\!s/^\([^[:space:]]*\).*[[:<:]]swap[[:>:]].*$/\1/p'
> /etc/fstab
Or:
awk '!/[:space:]*#/ && $3 == "swap" {print $1}' /etc/fstab
(and often a \ before the !)
--
Affijn, Ruud ` - ?
+ ` ? *
? `
? = `
Technical Details
Message-ID:
<c94utn.so.1@news.isolution.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!num2.nntp.dca.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!amsnews01.chello.com!newsfeed.wirehub.nl!transit.news.xs4all.nl!not-for-mailReferences:
<409fb124$0$6393$afc38c87@> <40b5b29d$0$561$e4fe514c@news.xs4all.nl> <c94ohu.1bc.1@news.isolution.nl>Show Full Headers
Complete Article Headers
Message-ID: <c94utn.so.1@news.isolution.nl>
Subject: Re: Diablo + FreeBSD 4.9 + md/vnconfig
Date: Thu, 27 May 2004 14:44:25 +0200
From: "Dr.Ruud" <'t.leven.is.fijn@life.i$.great>
References: <409fb124$0$6393$afc38c87@> <40b5b29d$0$561$e4fe514c@news.xs4all.nl> <c94ohu.1bc.1@news.isolution.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!num2.nntp.dca.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!amsnews01.chello.com!newsfeed.wirehub.nl!transit.news.xs4all.nl!not-for-mail
Reply-To: "Dr.Ruud" <(rvtol+news(AT)hacktic.nl) Administrator@[127.0.0.1]>
Newsgroups: news.software.nntp
Organization: Chaos rules.
X-Newsreader: WMDIYB
Approved: yesterday
X-Face: &CQ$FIr!=+=w,8`0Q^Ug"1>F[(/op8->E; NQet`5fe$;
=e*!Z5&REvp<~Tj|"Y[|8OcJ{w#z&mB7B:I)XO*%_|\]|YW$C>>$Q[9-#K~c$tQ^Mf0,wMo?h\C)TE>f
Lines: 27
NNTP-Posting-Date: 27 May 2004 14:53:31 CEST
NNTP-Posting-Host: 194.109.164.102
X-Trace: 1085662411 news.xs4all.nl 65124 [::ffff:194.109.164.102]:34902
X-Complaints-To: abuse@xs4all.nl