#!/bin/csh -f # irsdoc # ----------------------------------------------------------------------------- # Shell script to get an IRS document. # ----------------------------------------------------------------------------- # Usage: See Usage section below or run with no arguments to see usage. # Assumptions: # Effects: # - Loads a doc from the IRS web site. # Notes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ----------------------------------------------------------------------------- if ($#argv < 1 || "$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t irs_doc_name" echo "Examples: $0:t all To see names of all current IRS docs" echo " $0:t old Search for 100 years or so of old IRS docs" echo " $0:t oldall Links to 100 years or so of old IRS docs" echo " $0:t top Browse/search forms, pubs, etc." echo " $0:t f1040 Form 1040" echo " $0:t i1040 Form 1040 -- Instructions" ## Old URLs --Fred 5/15/2021 ## echo " $0:t f1040sab Form 1040 Schedules A/B" ## echo " $0:t i1040sa Form 1040 Schedules A/B -- Instructions" echo " $0:t f1040sa Form 1040 Schedule A" echo " $0:t i1040sca Form 1040 Schedule A -- Instructions (inconsistent name)" echo " $0:t f1040sb Form 1040 Schedule B" echo " $0:t i1040sb Form 1040 Schedule B -- Instructions" echo " $0:t p526 Publication 526: Charitable Contributions" echo " $0:t f8889 Form 8889: HSAs" echo " $0:t i8889 Form 8889: HSAs -- Instructions" exit 1 endif if ("$1" == "all") then ## Old URL --Fred 5/15/2021 ## open http://www.irs.gov/app/picklist/list/formsInstructions.html open http://apps.irs.gov/app/picklist/list/formsPublications.html else if ("$1" == "old") then ## Old URL --Fred 5/15/2021 ## open http://www.irs.gov/app/picklist/list/priorFormPublication.html open http://apps.irs.gov/app/picklist/list/priorFormPublication.html else if ("$1" == "oldall") then ## Old URL --Fred 5/15/2021 ## open http://www.irs.gov/pub/irs-prior/ open http://www.irs.gov/downloads/irs-prior/ else if ("$1" == "top") then ## Old URL --Fred 5/15/2021 ## open http://www.irs.gov/formspubs/ open http://www.irs.gov/forms-instructions/ else open http://www.irs.gov/pub/irs-pdf/$1.pdf endif