From owner-freebsd-questions@freebsd.org Sat Apr 15 22:00:36 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 083CFD3F522 for ; Sat, 15 Apr 2017 22:00:36 +0000 (UTC) (envelope-from jktrigg@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5932DB2 for ; Sat, 15 Apr 2017 22:00:35 +0000 (UTC) (envelope-from jktrigg@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id m36so82184902qtb.0 for ; Sat, 15 Apr 2017 15:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=KwovvaH3PnGcVornfhncOf0hDo+FuEqlUBYM4ZaR6FY=; b=GlzEejc+j/F6ZdHZf7aDGOqyFfvDSQdh22nKFV75v2eoub7MnbisQb1bKbralFUtR7 +shq8ECQyjI3FtOU89EbCez8EYZNgUar8NFc2CTY1FBka9KL5wo9xy5qTEbqOmHBTx8v MW7N4NTs2JYPCtQbGQg/kdYsUMO5uauS1tKdPkBaz2t4CU+zk2vxXQLvS/Mh8y4Bl3qK oQ1OJrYHxqtZ4O6hXeykIs4LV8urDxJtlh4oael0jRPgJe8PVKzJxdmXcKF42eWwW3GX IzUA4Tfi2ajjHpPLjVF+bAbKNdJ0iAFbYiXp6CMbPeg9is1R7AsnpU8WL7RBJDoXKPn3 t9IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=KwovvaH3PnGcVornfhncOf0hDo+FuEqlUBYM4ZaR6FY=; b=KVBTDm1fMmvTtzKPznS7NZ+i3hZU+JOo/P7KgebViUFSsdPR4TGX++Q6kMCiTNOqj4 4jvK+l6qf3WuM6YYNW4wT8nOCAZ8dGEWaBkoOiCg+uiQ3dwiByV3wgkwDUJINe37/UUT 0mzSmdEx1rGjNEYDp/wlVLtejtIhZX/7F3hykGWhoHx6BEynGrsDVpp7COb2ZyPq5/9V GgFcTjlpb0Tv+00dUUnbItPON8D+yj8nei//r6/Dg/A0m/kqQ6EPp32GACtNgQa32KbO Zc3zPwwxbJWGrtVF93/JUiZK98D6Yq7j1Xk2GiPi+tQQpzqqFaK9KNlWhmEZKsRZGbqZ FyTg== X-Gm-Message-State: AN3rC/4WIdFgeLpaQTOaS2BbkQZxhY1pTlbEfuRgETwGatsm0wpFeJaL 4nv9Vuj+EZoNDQ== X-Received: by 10.200.46.103 with SMTP id s36mr3235896qta.54.1492293634760; Sat, 15 Apr 2017 15:00:34 -0700 (PDT) Received: from [192.168.1.15] (c-69-138-176-247.hsd1.va.comcast.net. [69.138.176.247]) by smtp.googlemail.com with ESMTPSA id d133sm3920217qke.9.2017.04.15.15.00.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Apr 2017 15:00:33 -0700 (PDT) Sender: Jim Trigg Date: Sat, 15 Apr 2017 18:00:29 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <58F28697.4040803@gmail.com> References: <58F25A01.1060208@gmail.com> <7951DF71-5CD3-4B53-9CB4-13CAA8945983@huiekin.org> <58F28697.4040803@gmail.com> MIME-Version: 1.0 Subject: Re: awk help To: Ernie Luzar CC: freebsd-questions@freebsd.org From: Jim Trigg Message-ID: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 22:00:36 -0000 It's called a pattern, and it restricts the block to only be executed for r= ecords that match that pattern=2E Jim On April 15, 2017 4:46:15 PM EDT, Ernie Luzar wrote= : > >>> On April 15, 2017 1:36:01 PM EDT, Ernie Luzar >wrote: >>> Hello list; >>> >>> Can not figure how to process 2 lines as a single line=2E >>> I have this file=2E >>> >>> poollist: opts =3D 0x2 >>> Name: test Role: ipf References: 2 Hits: 0 >>> Nodes Starting at 0xc9fd4800 >>> Address: 1=2E11=2E244=2E65/32 >>> Hits 0 Bytes 0 Name Ref 2 >>> Address: 1=2E163=2E113=2E139/32 >>> Hits 0 Bytes 0 Name Ref 2 >>> Address: 1=2E163=2E139=2E214/32 >>> Hits 0 Bytes 0 Name Ref 2 >>> Address: 1=2E173=2E51=2E202/32 >>> Hits 0 Bytes 0 Name Ref 2 >>> Address: 1=2E175=2E164=2E129/32 >>> Hits 0 Bytes 0 Name Ref 2 >>> Address: 99=2E197=2E14=2E34/32 >>> Hits 0 Bytes 0 Name Ref 2 >>> >>> The Address line and the Hits line makes a pair=2E >>> >>> For any pair that hits is greater than zero >>> output file with ip address with ; sufix instead of /32 and >>> hit value in fixed position=2E >>> >>> I can't figure out how to code awk to process the 2 lines as a pair=2E >>> >>> All ready searched the online awk references and could not find an=20 >>> example=2E Any pointers would sure help=2E >>> >>> Thanks >> Jim Trigg wrote: >> /^Address/ { address =3D $2; got_address =3D 1; } >> /^ Hits/ { if (got_address) { >> hits =3D $2; >> if (hits) { >> [Do what's needed with address and hits] >> got_address =3D 0; >> } else { >> [Handle error condition of hits without=20 >address] >> } >> } >> >> Jim >> > >In awk talk what is this called >/^Address/ >/^ Hits/ > > >Thanks --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From owner-freebsd-questions@freebsd.org Sat Apr 15 22:49:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FACAD3F38C for ; Sat, 15 Apr 2017 22:49:45 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 903001D9A for ; Sat, 15 Apr 2017 22:49:45 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 15 Apr 2017 15:49:44 -0700 Subject: Re: Is it possible to install FreeBSD on a single MBR slice with ZFS ? To: freebsd-questions@freebsd.org References: From: David Christensen Message-ID: Date: Sat, 15 Apr 2017 15:50:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 22:49:45 -0000 On 04/15/2017 02:55 AM, Manish Jain wrote: > I always use freebsd-ufs for my installations. But I am interested in > trying freebsd-zfs. My box has a single hard disk, an SSD with 4 MBR slices. > > From what I could gather from the installer, it is not possible to use > freebsd-zfs for / for a single slice. It looks to me like ZFS needs the > whole disk. > > Am I wrong ? Is there any way I can get the installer to use ZFS for a > single slice. AFAIK, the FreeBSD 11.0 installer wants the whole disk if I choose: Partitioning Auto (ZFS) My solution was to buy a 16 GB SSD. Once installed, I moved the image onto a larger drive. This seems to work with just a basic install. (Previous attempts to move an image with Xfce resulted in broken Xfce.) David