|
Answer» what is the syntax to creating columns IE.. name time dayWe need more information from you than that.that was an awful question on my part. I am setting up a chart of the number of users logged in
who | cut -c1-8 | sort---this is my first column which displays user. I need to put a heading over I.E.
users time date joe 1:20 10/30 jack john how do align the column headings to correspond to the output http://www.mysysad.com/2007/05/list-logged-in-users-on-system.html this may help. I am by no means an expert on UNIX.What do you mean by "IE"? The web browser Internet Explorer, or "that is" (i.e.)?
You might want to explorer the "-H" flag of who, which prints column headings. You could for EXAMPLE do this:
Code: [Select]who -H | head -n 1; who | sort
For smarter processing of the output, consider using awk.
QUOTE from: beginner 1 on October 30, 2011, 08:59:36 AM that was an awful question on my part. I am setting up a chart of the number of users logged in
who | cut -c1-8 | sort---this is my first column which displays user. I need to put a heading over I.E.
users time date joe 1:20 10/30 jack john how do align the column headings to correspond to the output
What application are you using? Is this a spreadsheet in OpenOffice, or what?
|