Newsgroups: rec.arts.movies
From: c...@otter.hpl.hp.com (Colin Needham)
Date: 7 Oct 90 22:05:30 GMT
Local: Sun, Oct 7 1990 6:05 pm
Subject: Re: Is there a program ?
gr...@cstr.ed.ac.uk (Grant Mason) writes: Well I can't provide you with exactly what you want, but I have a Unix > Does anyone out there have a Unix or C program which can 'interrogate' the > actor/actress files? What I want to be able to do is to type in an > actor/actress' name and get out a list of all the films which they appeared > in. Similarly, typing in a film name would give a list of all the > actors/actresses who were in that film. > Can anybody help ? I'm not a programmer, so doing this myself is impossible. script which might be of some use. It is included at the end of this posting as a shell archive. I use it as part of the process of incorporating changes in the actors list. Note: I am posting this message rather than mailing to give others the The script (called 'explist') takes a list file as an argument and produces <name>|<title> To get the kind of functionality you require, run the script over the various There is one problem with the script: the actress list has to be edited "Adventures of Buckaroo Banzai Across the Eigth Dimension, The" The other lists do not split long titles and hence can be processed as Hope this helps, Col ------------------------------------------------------------ #---------------------------------- cut here ---------------------------------- LANG=""; export LANG echo x - explist # Author: Col Needham expand $1 | awk '/^[A-Z]/ {s1=substr($0,1,24)} /^[A-Z\t ]/ {print s1 "|" substr($0,25,80)}' | sed -e 's/ *|/|/' | grep -v '|$' chmod 777 explist exit 0 You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||