29 October 2011, 4:21 pm
With the below text I need to create a command that tells which states has the most # of presidents using basic commands if possible. I'm new to UNIX/Linux and have been working on this problem for the last 3 hrs please help! 1, 1789-1797, George Washington, John Adams, Virginia 2, 1797-1801, John Adams, Thomas Jefferson, Massachusetts 3, 1801-1809, Thomas Jefferson, Aaron Burr and George Clinton, Virginia 4, 1809-1817, James Madison, George Clinton and Elbridge Gerry, Virginia 5, 1817-1825, James Monroe, Daniel D Tompkins, Virginia 6, 1825-1829, John Quincy Adams, John C Calhoun, Massachusetts 7, 1829-1837, Andrew Jackson, John C Calhoun and Martin Van Buren, Tennessee 8, 1837-1841, Martin Van Buren, Richard M Johnson, New York 9, 1841, William Henry Harrison, John Tyler, Ohio 10, 1841-1845, John Tyler, None, Virginia 11, 1845-1849, James Polk, George M Dallas, Tennessee 12, 1849-1850, Zachary Taylor, Millard Fillmore, Louisiana 13, 1850-1853, Millard Fillmore, None, New York 14, 1853-1857, Franklin Pierce, William R King, New Hampshire 15, 1857-1861, James Buchanan, John C Breckinridge, Pennsylvania 16, 1861-1865, Abraham Lincoln, Hannibal Hamlin and Andrew Johnson, Illinois 17, 1865-1869, Andrew Johnson, None, Tennessee 18, 1869-1877, Ulysses Simpson Grant, Schuyler Colfax and Henry Wilson, Illinois 19, 1877-1881, Rutherford Birchard Hayes, William A Wheeler, Ohio 20, 1881, James Abram Garfield, Chester A Arthur, Ohio 21, 1881-1885, Chester Alan Arthur, None, New York 22, 1885-1889, Stephen Grover Cleveland, Thomas Hendricks, New York 23, 1889-1893, Benjamin Harrison, Levi P Morton, Indiana 24, 1893-1897, Grover Cleveland, Adlai E Stevenson, New York 25, 1897-1901, William McKinley, Garret A Hobart and Theodore Roosevelt, Ohio 26, 1901-1909, Theodore (Teddy) Roosevelt, Charles W Fairbanks, New York 27, 1909-1913, William Howard Taft, James S Sherman, Ohio 28, 1913-1921, Thomas Woodrow Wilson, Thomas R Marshall, New Jersey 29, 1921-1923, Warren Gamaliel Harding, Calvin Coolidge, Ohio 30, 1923-1929, John Calvin Coolidge, Charles G Dawes, Massachusetts 31, 1929-1933, Herbert Clark Hoover, Charles Curtis, California 32, 1933-1945, Franklin Delano Roosevelt, John N Garner and Henry A Wallace and Harry S Truman, New York 33, 1945-1953, Harry S Truman, Alben W Barkley, Missouri 34, 1953-1961, Dwight David Eisenhower, Richard M Nixon, New York 35, 1961-1963, John (Jack) Fitzgerald Kennedy, Lyndon B Johnson, Massachusetts 36, 1963-1969, Lyndon Baines Johnson, Hubert Humphrey, Texas 37, 1969-1974, Richard Milhous Nixon, Spiro T Agnew and Gerald Ford, New York 38, 1974-1977, Gerald Rudolph Ford, Nelson Rockefeller, Michigan 39, 1977-1981, James (Jimmy) Earl Carter, Walter Mondale, Georgia 40, 1981-1989, Ronald Wilson Reagan, George Bush, California 41, 1989-1993, George Herbert Walker Bush, Dan Quayle, Texas 42, 1993-2001, William (Bill) Jefferson Clinton, Al Gore, Arkansas 43, 2001-2008, George Walker Bush, Dick Cheney, Texas... Read More »