Last active
January 11, 2023 16:32
-
-
Save Wikinaut/09090645e4d452dfee66459f9f074e0e to your computer and use it in GitHub Desktop.
Fetch and sort the description files from bitsavers.org according to manufacturers' names
This file contains hidden or 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
#!/usr/bin/bash | |
# init 20230111 | |
outf="bitsavers.txt" | |
server="http:\/\/bitsavers.org\/ " | |
echo "Fetch and sort the description files from bitsavers.org according to manufacturers' names to $outf" | |
wget -O - http://bitsavers.org/components/IndexByDate.txt | sed -e "s/^.* .* /${server}components\/ /" - > $outf.tmp | |
wget -O - http://bitsavers.org/communications/IndexByDate.txt | sed -e "s/^.* .* /${server}communications\/ /" - >> $outf.tmp | |
wget -O - http://bitsavers.org/bits/IndexByDate.txt | sed -e "s/^.* .* /${server}bits\/ /" - >> $outf.tmp | |
wget -O - http://bitsavers.org/pdf/IndexByDate.txt | sed -e "s/^.* .* /${server}pdf\/ /" - >> $outf.tmp | |
wget -O - http://bitsavers.org/magazines/IndexByDate.txt | sed -e "s/^.* .* /${server}magazines\/ /" - >> $outf.tmp | |
wget -O - http://bitsavers.org/test_equipment/IndexByDate.txt | sed -e "s/^.* .* /${server}test_equipment\/ /" - >> $outf.tmp | |
sort -k 3 $outf.tmp | uniq | sed -e "s/ //g" - > $outf | |
rm $outf.tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment