Unix

From: escobo (bothata_at_hotmail.com)
Date: 04/20/04

  • Next message: Chris F.A. Johnson: "Re: Unix"
    Date: 19 Apr 2004 17:46:53 -0700
    
    

    Listing The file data.txt has the following structure:
    Item1 Item2 ... ItemN
    ------------------------------------------------
    Value11 Value21 ... ValueN1
    Value12 Value22 ... ValueN2
    : : :
    Value1M Value2M ... ValueNM

    Create a script that displays the information from the file data.txt
    sorted by some criteria. Your script should have the following input
    parameters:
    listing -h -ilist -olist -ffile
    -h displays help
    -ilist, list defines criteria for sorting,
    -olist, list defines which values will be displayed on the output,
    -ffile, name of the input file.

    Example
    listing -i3,4 -o2,1 -fstudents.txt
    file students.txt has the following contents
    Surname Name Class Group
    ---------------------------------------
    Novak Petr 3 24
    Dvorak Jiri 3 24
    Kovarikova Lenka 3 23
    Michalek Karel 4 12
    Cesilko Mirek 3 23

    The script listing displays
    Class 3
            Group 23
                            Lenka Kovarikova
                            Mirek Cesilko
            Group 24
                            Petr Novak
                            Jiri Dvorak
    Class 4
            Group 12
                            Karel Michalek


  • Next message: Chris F.A. Johnson: "Re: Unix"

    Relevant Pages

    • Re: Get the cwd of a process?
      ... COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ... puzzled by the ps listing. ... parentheses, but if I invoke a similarly-named script from the shell, ... recently where a perl script was called from an infiltrated Wordpress ...
      (freebsd-questions)
    • Re: getting around a permissions problem
      ... They have the ability here to upload ... The problem I have is that when they add a listing and the directory gets ... access, however, I also need to make it accessible to the owner via ftp so ... You could use a suid script. ...
      (comp.lang.php)
    • Re: Checking if a file is opened
      ... Find out what _FILES_, registry keys and other objects processes have open... ... In other words it gives you a listing of files ... Microsoftie" who is giving them information about windows internal tables, or else Mark & Bryce have spent weeks, months, even YEARS combing through hex dumps "reverse engineering" the system internal tables to get that listing of handles. ... pure script. ...
      (microsoft.public.scripting.vbscript)
    • UNIX Scripting
      ... I'm looking to develop a UNIX script for Solaris which will give me ... Listing of SUID/SGIDs ... Password parameters ... I want to write the script, but does anyone recommend how it should be ...
      (comp.unix.admin)
    • Re: Generic thanks
      ... >> means if the script of the Phaistos Disc is a syllabic script there ... >> it is impossible to found the right solution by chance. ... Therefore it's possible to check a decipherment by checking it ... Let us assume that you have a easy to calculate criteria to see if you ...
      (sci.lang)