Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
set -euo pipefail
FDR_FILES=(
Tail_666_9.zip
Tail_667_1.zip
Tail_667_3.zip
Tail_667_5.zip
Tail_666_10.zip
Tail_666_11.zip
Tail_666_1.zip
Tail_666_2.zip
Tail_666_3.zip
Tail_666_4.zip
Tail_666_5.zip
Tail_666_6.zip
Tail_666_7.zip
Tail_666_8.zip
Tail_667_10.zip
Tail_667_2.zip
Tail_667_4.zip
Tail_667_6.zip
Tail_652_1.zip
Tail_652_2.zip
Tail_652_3.zip
Tail_652_4.zip
Tail_652_5.zip
Tail_652_6.zip
Tail_652_7.zip
Tail_652_8.zip
Tail_653_1.zip
Tail_653_2.zip
Tail_653_3.zip
Tail_653_4.zip
Tail_653_5.zip
Tail_653_6.zip
Tail_653_7.zip
Tail_653_8.zip
Tail_654_1.zip
Tail_654_2.zip
Tail_654_3.zip
Tail_654_4.zip
Tail_654_5.zip
Tail_654_6.zip
Tail_654_7.zip
Tail_654_8.zip
Tail_655_1.zip
Tail_655_2.zip
Tail_655_3.zip
Tail_655_4.zip
Tail_655_5.zip
Tail_655_6.zip
Tail_655_7.zip
Tail_655_8.zip
Tail_656_1.zip
Tail_656_2.zip
Tail_656_3.zip
Tail_656_4.zip
Tail_656_5.zip
Tail_656_6.zip
Tail_656_7.zip
Tail_656_8.zip
Tail_657_1.zip
Tail_657_2.zip
Tail_657_3.zip
Tail_657_4.zip
Tail_657_5.zip
Tail_657_6.zip
Tail_657_7.zip
Tail_658_1.zip
Tail_658_2.zip
Tail_658_3.zip
Tail_658_4.zip
Tail_658_5.zip
Tail_658_6.zip
Tail_658_7.zip
Tail_658_8.zip
Tail_659_1.zip
Tail_659_2.zip
Tail_659_3.zip
Tail_659_4.zip
Tail_659_5.zip
Tail_659_6.zip
Tail_659_7.zip
Tail_659_8.zip
Tail_660_1.zip
Tail_660_2.zip
Tail_660_3.zip
Tail_660_4.zip
Tail_660_5.zip
Tail_660_6.zip
Tail_660_7.zip
Tail_660_8.zip
Tail_661_1.zip
Tail_661_2.zip
Tail_661_3.zip
Tail_661_4.zip
Tail_661_5.zip
Tail_661_6.zip
Tail_661_7.zip
Tail_661_8.zip
Tail_662_1.zip
Tail_662_2.zip
Tail_662_3.zip
Tail_662_4.zip
Tail_662_5.zip
Tail_662_6.zip
Tail_662_7.zip
Tail_662_8.zip
Tail_663_1.zip
Tail_663_2.zip
Tail_663_3.zip
Tail_663_4.zip
Tail_663_5.zip
Tail_663_6.zip
Tail_663_7.zip
Tail_663_8.zip
Tail_664_1.zip
Tail_664_2.zip
Tail_664_3.zip
Tail_664_4.zip
Tail_664_5.zip
Tail_664_6.zip
Tail_664_7.zip
Tail_664_8.zip
Tail_664_9.zip
Tail_665_1.zip
Tail_665_2.zip
Tail_665_3.zip
Tail_665_4.zip
Tail_665_5.zip
Tail_665_6.zip
Tail_665_7.zip
Tail_665_8.zip
Tail_667_7.zip
Tail_667_8.zip
Tail_667_9.zip
Tail_670_10.zip
Tail_670_1.zip
Tail_670_2.zip
Tail_670_4.zip
Tail_668_1.zip
Tail_668_2.zip
Tail_668_3.zip
Tail_668_4.zip
Tail_668_5.zip
Tail_668_6.zip
Tail_668_7.zip
Tail_668_8.zip
Tail_668_9.zip
Tail_669_1.zip
Tail_669_2.zip
Tail_669_3.zip
Tail_669_4.zip
Tail_669_5.zip
Tail_669_6.zip
Tail_669_7.zip
Tail_669_8.zip
Tail_669_9.zip
Tail_672_1.zip
Tail_672_2.zip
Tail_672_3.zip
Tail_672_4.zip
Tail_672_5.zip
Tail_672_6.zip
Tail_672_7.zip
Tail_672_8.zip
Tail_672_9.zip
Tail_673_1.zip
Tail_673_2.zip
Tail_673_3.zip
Tail_673_4.zip
Tail_673_5.zip
Tail_673_6.zip
Tail_673_7.zip
Tail_673_8.zip
Tail_673_9.zip
Tail_677_1.zip
Tail_677_2.zip
Tail_677_3.zip
Tail_677_4.zip
Tail_677_5.zip
Tail_677_6.zip
Tail_677_7.zip
Tail_677_8.zip
Tail_678_1.zip
Tail_678_2.zip
Tail_678_3.zip
Tail_678_4.zip
Tail_678_5.zip
Tail_678_6.zip
Tail_678_7.zip
Tail_678_8.zip
Tail_680_1.zip
Tail_680_2.zip
Tail_680_3.zip
Tail_680_4.zip
Tail_680_5.zip
Tail_680_6.zip
Tail_680_7.zip
Tail_680_8.zip
Tail_681_1.zip
Tail_681_2.zip
Tail_681_3.zip
Tail_681_4.zip
Tail_681_5.zip
Tail_681_6.zip
Tail_681_7.zip
Tail_681_8.zip
Tail_681_9.zip
Tail_682_1.zip
Tail_682_2.zip
Tail_682_3.zip
Tail_682_4.zip
Tail_682_5.zip
Tail_682_6.zip
Tail_682_7.zip
Tail_682_8.zip
Tail_682_9.zip
Tail_685_1.zip
Tail_685_2.zip
Tail_685_3.zip
Tail_685_4.zip
Tail_685_5.zip
Tail_685_6.zip
Tail_685_7.zip
Tail_685_8.zip
Tail_685_9.zip
Tail_686_1.zip
Tail_686_2.zip
Tail_686_3.zip
Tail_686_4.zip
Tail_686_5.zip
Tail_686_6.zip
Tail_686_7.zip
Tail_686_8.zip
Tail_686_9.zip
Tail_687_1.zip
Tail_687_2.zip
Tail_687_3.zip
Tail_687_4.zip
Tail_687_5.zip
Tail_687_6.zip
Tail_687_7.zip
Tail_687_8.zip
Tail_687_9.zip
Tail_670_3.zip
Tail_670_5.zip
Tail_670_6.zip
Tail_670_7.zip
Tail_670_8.zip
Tail_670_9.zip
Tail_671_10.zip
Tail_671_1.zip
Tail_671_2.zip
Tail_671_3.zip
Tail_671_4.zip
Tail_671_5.zip
Tail_671_6.zip
Tail_671_7.zip
Tail_671_8.zip
Tail_671_9.zip
Tail_674_10.zip
Tail_674_11.zip
Tail_674_1.zip
Tail_674_2.zip
Tail_674_3.zip
Tail_674_4.zip
Tail_674_5.zip
Tail_674_6.zip
Tail_674_7.zip
Tail_674_8.zip
Tail_674_9.zip
Tail_675_10.zip
Tail_675_1.zip
Tail_675_2.zip
Tail_675_3.zip
Tail_675_4.zip
Tail_675_5.zip
Tail_675_6.zip
Tail_675_7.zip
Tail_675_8.zip
Tail_675_9.zip
Tail_676_10.zip
Tail_676_11.zip
Tail_676_1.zip
Tail_676_2.zip
Tail_676_3.zip
Tail_676_4.zip
Tail_676_5.zip
Tail_676_6.zip
Tail_676_7.zip
Tail_676_8.zip
Tail_676_9.zip
Tail_683_10.zip
Tail_683_1.zip
Tail_683_2.zip
Tail_683_3.zip
Tail_683_4.zip
Tail_683_5.zip
Tail_683_6.zip
Tail_683_7.zip
Tail_683_8.zip
Tail_683_9.zip
Tail_684_10.zip
Tail_684_1.zip
Tail_684_2.zip
Tail_684_3.zip
Tail_684_4.zip
Tail_684_5.zip
Tail_684_6.zip
Tail_684_7.zip
Tail_684_8.zip
Tail_684_9.zip
)
for f in "${FDR_FILES[@]}"; do
if [ ! -e ".$f" ] && [ ! -e ".download_flight_data" ]; then
echo "Downloading: $f";
curl https://c3.nasa.gov/dashlink/static/media/dataset/$f > $f
touch .$f
fi
done
touch .download_flight_data
# clean up tmp files
rm -f .Tail_6*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.