User:Rick Block/Footer Olympic Champions 4x400 m Men/script


 * 1) !/bin/bash
 * 2) originally run on a Mac OS X, should work on Linux or Unix
 * 1) originally run on a Mac OS X, should work on Linux or Unix

cat >/tmp/$$ <<! 1912 United States Mel Sheppard, Edward Lindberg, Ted Meredith, Charles Reidpath 1920 Great Britain Cecil Griffiths, Robert Lindsay, John Ainsworth-Davies, Guy Butler 1924 United States Commodore Cochran, Alan Helffrich, Oliver MacDonald, William Stevenson 1928 United States George Baird, Emerson Spencer, Frederick Alderman, Ray Barbuti 1932 United States Ivan Fuqua, Edgar Ablowich, Karl Warner, Bill Carr 1936 Great Britain Frederick Wolff, Godfrey Rampling, William Roberts, Godfrey Brown 1948 United States Arthur Harnden, Clifford Bourland, Roy Cochran, Mal Whitfield 1952 Jamaica Arthur Wint, Leslie Laing, Herb McKenley, George Rhoden 1956 United States Charlie Jenkins, Louis Jones, Jesse Mashburn, Tom Courtney 1960 United States Jack Yerman, Earl Young, Glenn Davis, Otis Davis 1964 United States Ollan Cassell, Michael Larrabee, Ulis Williams, Henry Carr 1968 United States Vincent Matthews, Ron Freeman, Larry James, Lee Evans 1972 Kenya Charles Asati, Hezahiah Nyamau, Robert Ouko, Julius Sang 1976 United States Herman Frazier, Benjamin Brown, Fred Newhouse, Maxie Parks 1980 Soviet Union Remigijus Valiulis, Mikhail Linge, Nikolay Chernetsky, Viktor Markin 1984 United States Sunder Nix, Ray Armstead, Alonzo Babers, Antonio McKay 1988 United States Danny Everett, Steve Lewis, Kevin Robinzine, Butch Reynolds 1992 United States Andrew Valmon, Quincy Watts, Michael Johnson, Steve Lewis 1996 United States LaMont Smith, Alvin Harrison, Derek Mills, Anthuan Maybank 2000 United States Alvin Harrison, Antonio Pettigrew, Calvin Harrison, Michael Johnson 2004 United States Otis Harris, Derrick Brew, Jeremy Wariner, Darold Williamson !

cat /tmp/$$ | awk ' {  i = i + 1 year[i] = $1 link[i] = $0 sub("[^[]*","",link[i]) sub("[[][[]","",link[i]) sub("].*","",link[i])  sub("\\|.*","",link[i])  entry[i] = $0 }

END { print " " print "{| id=toc style=\"margin: 0;background:#ffffff;\"" print "|- style=\"background:#efefef\"" print "|align=\"center\"| '""'Olympic champions in men'"'"'s 4x400 m relay'""'" print "|- " print "|" print "|}" }'