Created
September 18, 2017 19:57
-
-
Save lg3bass/a87c8c497e6aaa71ab0449909d25aec2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//OUTPUT IF A URL EXISTS. ESSENTIALLY CHECKING IF THE RETURNED VALUE IS HTML CODE 200 OR NOT. | |
echo -e "IBM_Sells_PC.mp4 \t $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/wild/IBM_Sells_PC.mp4 | head -1)" >> report.txt | |
-- best if run in a bbedit shellWorksheet as a stack of commands. e.g. | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090610_nwo_monminute_econom.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090610_nwo_monminute_econom.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090724_2020_oil_pre.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090724_2020_oil_pre.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090729_ann_itn_yahoo.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090729_ann_itn_yahoo.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090824_ann_mm_heuser.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090824_ann_mm_heuser.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090901_ann_mm_branding.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090901_ann_mm_branding.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090902_ann_jobclub_internadvice.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090902_ann_jobclub_internadvice.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090923_ann_gm_franchise.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/090923_ann_gm_franchise.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/ANN_1-14-10_HaitiText.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/ANN_1-14-10_HaitiText.srt | head -1)" >> report.txt | |
echo -e "http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/ANN_1-5-10_Apple.srt $(curl -Is http://export.mediaconsole.pearsoncmg.com/mdc/export/video/HE_BusPub/pearsonedu_upload_akamai_com/pandc/bp/2011/abc/ANN_1-5-10_Apple.srt | head -1)" >> report.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment