c-shell script
heyas,
i've been looking at this assignment for about a week now and i missed pretty much all of the lectures on c-shell scripts, so i was wondering if someone could help me.
I have to write a csh script (htx) that constructs a HTML index page for files listed on the command line. The page has to contain a title, a table with one row for each indexed file, and a footer that specifies details about how the index was generated.
The command line syntax for the program is:
htx [-option ...] [file ...]
The file arguments specify which files to index; if no files are specified, the program generates an index page for the files in the current directory. The option arguments specify what information to include in the index, and can occur in any order.
-T text use text as both the title field in the head and the text for a h1 field in the body. The default title is "File Index".
-l Make the file names in the index act as links (anchors) to the files themselves if the file is readable.
-t Add file type information to the index.
-d Add file detail information (size and modification time) to the index.
-- Indicates end of option arguments. Remaining arguments should be treated as filenames, even if they begin with -.
As i said, i have absolutely no idea of where to even start for this, so any help would be appreciated, cheers,
Tim.
|