Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: setting up a chart  (Read 3904 times)

0 Members and 1 Guest are viewing this topic.

beginner 1

    Topic Starter


    Greenhorn

    • Experience: Beginner
    • OS: Unknown
    setting up a chart
    « on: October 30, 2011, 08:14:24 AM »
    what is the syntax to creating columns  IE..                     name       time        day

    Quantos



      Guru
    • Veni, Vidi, Vici
    • Thanked: 170
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Guru
    • OS: Linux variant
    Re: setting up a chart
    « Reply #1 on: October 30, 2011, 08:19:07 AM »
    We need more information from you than that.
    Evil is an exact science.

    beginner 1

      Topic Starter


      Greenhorn

      • Experience: Beginner
      • OS: Unknown
      Re: setting up a chart
      « Reply #2 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                                                                                                                                     

      Transfusion



        Mentor

      • STUPID=Smart Talented Unique Person In Demand
      • Thanked: 105
        • Yes
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Linux variant
      Re: setting up a chart
      « Reply #3 on: October 30, 2011, 10:25:23 AM »
      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.
      In Soviet Russia, iPhone touch you. Computer shut you down. Mouse click you. Floppy inserts you. Yahoo answers you. Man in TV watches you. Computer game addicts you. Guitar shreds you. Motherboard fries you. The laughter in manslaughter is put back in.
      Giveaway of the Day" style="border: none

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: setting up a chart
      « Reply #4 on: November 01, 2011, 04:18:13 AM »
      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.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos

      soybean



        Genius
      • The first soybean ever to learn the computer.
      • Thanked: 469
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 10
      Re: setting up a chart
      « Reply #5 on: November 02, 2011, 12:43:12 PM »
      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?