Name: asdfghj Date: April 10, 2006 at 08:53:24 Pacific Subject: unix script OS: windows CPU/Ram: 256
Comment:
This script will be capable of handling a certain file type, which I call the musician data file (MDF). The MDF is a simple text file, which has the format: <Musician name> <Musician Surname> <instrument> <band> In other words, say file “list” (which is an MDF file) exists in our home directory and when we say $ cat list Joe Satriani Guitar Single Erkan Ogur Guitar Telvin Mike Portnoy Drums DreamTheater Sebnem Ferah Vocals Volvox John Myung Bass DreamTheater Your script should be callable in the following two formats: yourscript mdffilename instrument yourscript mdffilename bandname These operations are 1. Find an instrument user: When an instrument name is entered the musicians of that instrument should be listed $ yourscript list Guitar Joe Satriani Guitar Single Erkan Ogur Guitar Telvin 2. Find a band member: When an band name is entered the musicians of that band should be listed $ yourscript list DreamTheater Mike Portnoy Drums DreamTheater John Myung Bass DreamTheater If yourscript is executed with any invalid parameter, it should return without doing anything.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE