Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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