From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 68EA01FF37F for ; Thu, 18 Apr 2024 14:30:44 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7999A1C9B3; Thu, 18 Apr 2024 14:30:42 +0200 (CEST) Message-ID: <7ac1a4d627f72be8042ddb16d742aaefbd6c6541.camel@proxmox.com> From: Alexander Zeidler To: Proxmox VE development discussion Date: Thu, 18 Apr 2024 14:30:05 +0200 In-Reply-To: References: <20240418091650.51366-1-a.zeidler@proxmox.com> <20240418091650.51366-5-a.zeidler@proxmox.com> User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.090 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH manager 5/7] report: overhaul `dmidecode` related output X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" On Thu, 2024-04-18 at 12:24 +0200, Mira Limbeck wrote: > Would it be possible to align these correctly, or just use a single > space between type and value? > I'd prefer explicit commands like: Better formatting can of course be achieved, see the adapted example below, followed by your mentioned `cat` structure. # cd /sys/devices/virtual/dmi/id; grep -H "" sys_vendor product_name product_version | column -t -s: sys_vendor HP product_name ProLiant DL380p Gen8 product_version Not specified # cd /sys/devices/virtual/dmi/id; grep -H "" board_vendor board_name board_version | column -t -s: board_vendor ASUSTeK COMPUTER INC. board_name Z13PP-D32 Series board_version 60SB09M0-SB0G11 # cat /sys/devices/virtual/dmi/id/sys_vendor HP # cat /sys/devices/virtual/dmi/id/product_name ProLiant DL380p Gen8 # cat /sys/devices/virtual/dmi/id/product_version Not specified # cat /sys/devices/virtual/dmi/id/board_vendor ASUSTeK COMPUTER INC. # cat /sys/devices/virtual/dmi/id/board_name Z13PP-D32 Series # cat /sys/devices/virtual/dmi/id/board_version 60SB09M0-SB0G11 > Adding at least one additional newline per file read, but there would be > no need for cd-ing, printing the filename with grep and trying to align > the output. While so far I see no problem with using `cd` or pipes in general, maybe someone else has a strong preference. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel