Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Last active January 11, 2023 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wikinaut/09090645e4d452dfee66459f9f074e0e to your computer and use it in GitHub Desktop.
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
#!/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