Work the Shell - Movie Trivia and Fun with Random Numbers  Use
the shell to manipulate a list of movies from the Internet Movie
Database (IMDb).  Last month, we had a lot of fun digging around
within the Internet Movie Database, producing a set of scripts
that together make it easy to generate a list of the top 250
movies on the site with release dates. The format of the output
is:  All About Eve | 1950  Hotel Rwanda | 2004  Sin City | 2005
City Lights | 1931  This month, I take a look at how you can
break those two fields up and randomly generate some likely
release dates close to the actual date, then send it as a
question on Twitter. For example, it might ask, “Hotel Rwanda
was released in: 2000, 2001, 2004 or 2007?”  Splitting Up the
Fields  Okay, this should be super easy for anyone reading this
column. There are a bunch of ways to take a two-field data
record and split it up, but my favorite tool for this sort of
task is cut. So, we can do this:  moviename="$(echo $entry | cut
-d\| -f1)" releasedate=$(