From owner-freebsd-questions Sat Jan 27 11:04:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA25531 for questions-outgoing; Sat, 27 Jan 1996 11:04:26 -0800 (PST) Received: from mail.bw.lgca.ohio.gov (mail.bw.lgca.ohio.gov [156.63.242.129]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA25522 for ; Sat, 27 Jan 1996 11:04:23 -0800 (PST) Received: (from glitch@localhost) by mail.bw.lgca.ohio.gov (8.6.11/8.6.9) id OAA26999; Sat, 27 Jan 1996 14:03:06 GMT Date: Sat, 27 Jan 1996 14:03:06 +0000 () From: Jeff Brand To: questions@freebsd.org Subject: A few questions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk Ok.. Hopefully these are simple.. First. On a few occasions, users on our system are still logged on to a port (ttyp,etc) but own no processes on the system. They are also still on the wholist. Could anyone explain why this might be, how to correct it, and possibly how to prevent it? The next question deals with getting a LF into a variable. In a script like #!/bin/sh myvar=$(cat file) echo "$myvar" this will echo the file with all of the original LFs. Well, I'd like to get a variable to do the same thing. I would like to get a series of stdouts from an awk into the variable, inserting an LF between each. I've tried printf in the middle, but that hasn't worked. Any hints on a solution? Thanks for any help. ------------------------------------------------------------- - And remember, you are unique... Just like everybody else. - - Jeff Brand, - -------------------------------------------------------------