Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- regex='href=\"(\.\.\/)*([^ "]+)'
- agent='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36'
- curl --user-agent "$agent" --retry 10 --retry-delay 10 --connect-timeout 10 --silent "http://testou.free.fr/www.beatjapan.org/mirror/www.be.com/beware/Available_List_Source.html" | grep -Eo "$regex" | sed -E "s/${regex}/\2/g" | while read line; do wget -e robots=off --waitretry=10 --tries=inf "http://testou.free.fr/${line}"; done
- ***
- find . -type f -iname "*" | sed 's/^\.\///' | while read line; do f_type=$(file "$line" | grep -Fq ': HTML document,'; echo "$?"); if [[ $f_type -eq 0 ]]; then echo "$line"; fi; done
- ***
- for zip in '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS 5.0 Professional.7z' '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS 5.0 Personal.7z' '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS 4.5.7z' '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS 4.0.7z' '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS 3.1.7z' '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS 3.0.7z' '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BeOS/Distr/BeOS Developer Edition 1.1.7z'; do bn=$(basename "$zip" | sed 's/\.7z$//'); if [[ ! -d $bn ]]; then mkdir -p "$bn" || continue; echo "$bn"; cd "$bn"; arch_unpack "$zip"; cd ..; fi; done
- ***
- ***
- remove haiku images
- add zeta images
- remove duplicates
- extract sit file
- sort docs
- sort floppy images / updates
- merge development/docs
- file:///run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BEOS5PEWARE/development/docs
- 'documentation'
- smc?
- * sort by largest 7z and find more install images
- * update hqx_backup, sit_backup
- * find and remove empty dirs (hqx_backup, sit_backup)
- * remove '_zzz$'
- ***
- wget -r -np -e robots=off --waitretry=10 --tries=inf http://ftp.icm.edu.pl/pub/beos/
- wget -r -np -k -e robots=off --waitretry=10 --tries=inf "https://birdhouse.org/beos/bible/"
- ***
- find . -type f -iname "*.tar" | while read f; do arch_pack "${f}.7z" "$f" && rm "$f"; done
- find . -type f -iname "*.pkg" | while read f; do arch_pack "${f}.7z" "$f" && rm "$f"; done
- find . -type f -iname "*.tar" | while read f; do if [[ ! -f ${f}.7z ]]; then of="${f}.7z"; else of="${f%.tar}-${RANDOM}.tar.7z"; fi; arch_pack "$of" "$f" && rm "$f"; done
- find . -type f -iname "*.pkg" | while read f; do if [[ ! -f ${f}.7z ]]; then of="${f}.7z"; else of="${f%.pkg}-${RANDOM}.pkg.7z"; fi; arch_pack "$of" "$f" && rm "$f"; done
- ***
- find '/run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection' -type f -iname "*.pdf" | while read f; do newfn=$(sed -E 's/pdf$/pdf/i' <<<"$f"); if [[ $f != $newfn ]]; then mv -n "$f" "$newfn"; fi; done
- ***
- find . -type f -iname "*.7z" | while read f; do 7za l "$f" | tail -n 1 | grep -Eq "[[:blank:]]+0[[:blank:]]+files" && echo "$f" >> /home/lucifer/beos_empty_7z.txt; done
- ***
- ipro1000_0.4.zip
- ***
- find . -type f -iname "index.html\?*" | while read f; do rm "$f"; done
- ***
- find . -type f -iname "*.gz" -o -iname "*.bz2" | grep -Ev '.tar.(gz|bz2)$'
- ***
- find . -type f -iname "*.zip.bak" | while read f; do rm "$f"; done
- find . -type d | grep -E '\-[[:digit:]]+$'
- ***
- find corrupted archives:
- cat md5.db | while read line; do md5=$(grep -Eo '[[:alnum:]]{32}$' <<<"$line"); fn=$(grep "$md5" '/home/lucifer/hqx_backup_old/md5.db' | cut -d'*' -f1 | sed 's/[[:blank:]]+$//'); echo "*** ${fn}"; done
- grep '\.hqx' md5.db | while read line; do md5=$(grep -Eo '[[:alnum:]]{32}$' <<<"$line"); fn=$(grep "$md5" '/home/lucifer/hqx_backup_old/md5.db' | cut -d'*' -f1 | sed 's/[[:blank:]]+$//'); echo "*** ${fn}"; done
- find non-zip files, and gzip archives that are not actually gzip:
- find . -type f | grep -Eiv '\.zip$' | while read f; do file "$f" | grep -Eiv "gzip compressed data"; done
- ***
- sed -E 's/([^ a-zA-Z0-9\.\-_ ])/\\\1/g'
- ***
- find . -type f -iname "*.img" | while read f; do arch_pack "${f}.7z" "$f" && rm "$f"; done
- ***
- find . -type f -iname "*.sea" -o -iname "*.rsrc" | while read f; do fn=$(sed -E 's/^\.\///' <<<"$f"); dn=$(dirname "$fn"); mkdir -p "sea/${dn}"; mv -n "$fn" "sea/${dn}"; done
- ***
- find . -type f -iname "*.gif" | while read f; do newfn=$(sed -E 's/\.gif$/\.gif/i' <<<"$f"); mv -n "$f" "$newfn"; done
- ***
- regex='((\.lzh)|(\.gz)|(\.z)|(\.bz2)|(\.xz)|(\.zip)|(\.rar)|(\.arj)|(\.tar)|(\.tgz)|(\.tbz)|(\.tbz2)|(\.txz)|(\.sit)|(\.hqx)|(\.sea)|(\.rsrc))$'
- ***
- find . -type f -iname "*be*book*" -o -iname "*bible*"
- /run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BEOS5PEWARE/system_files/icons/CubeBeOSIcons1.7z
- /run/media/lucifer/f61840d6-9ba6-4cf8-ad6f-5c97c8c58b18/Torrents/BeOS collection/BEOS5PEWARE/system_files/icons/CLBeIcons1.7z
- ***
- check_beos.sh (check if out dir is empty)
- ***
- for zip in *.7z; do mkdir "${zip%.7z}"; cd "${zip%.7z}"; arch_unpack ../"$zip"; cd ..; done
- ***
- find . -type f | grep -Ev '\.pkg.7z$' | while read f; do rm "$f"; done
- ***
- tr -d '\r' <'md5.db' | while read line; do fn=$(sed -E 's/^(.*)\t\*\t[[:alnum:]]{32}/\1/' <<<"$line"); if [[ -f $fn ]]; then echo "$line"; fi; done
- ***
- find . -type f -iname "*" | sed -E 's/\.[[:alnum:]]{1,3}$//' | sort -u | while read fn; do files=("${fn}"*); arch_pack "${fn}.7z" "${files[@]}"; rm "${files[@]}"; done
- ***
- grep -E -e '\.bin$' -e '\.cue$' -e '\.iso$' -e '\.7z$' -e '\.pdf$' -e '\.exe$' beos_duplicates.txt | sort
- ***
- find . -iname "*.hqx*" | sed -E 's/^\.\///' | while read f; do dn=$(dirname "$f"); mkdir -p "/home/lucifer/hqx_backup/${dn}"; mv -n "$f" "/home/lucifer/hqx_backup/${dn}"; done
- find . -iname "*.sea*" | sed -E 's/^\.\///' | while read f; do dn=$(dirname "$f"); mkdir -p "/home/lucifer/sit_backup/${dn}"; mv -n "$f" "/home/lucifer/sit_backup/${dn}"; done
- ***
- for dir in *; do find "$dir" -type f -iname "*"; while read f; do mv -n "$f" "$dir"; done; done
- ***
- find . -type f -iname "*.pdf" | while read f; do arch_pack "${f%.pdf}.7z" "$f"; rm "$f"; done
- ***
- find . -type f -iname "index.html" | while read f; do grep -Fq 'Directory Listing' "$f" && rm "$f"; done
- find . -type f -iname "index.html" | while read f; do grep -Fq 'Request_URI' "$f" && rm "$f"; done
- ***
- find . -type f -iname "*bin cue*.7z" | while read f; do dn=$(dirname "$f"); bn=$(basename "$f"); cd "$dn"; mkdir "${bn%.7z}"; cd "${bn%.7z}"; arch_unpack ../"$bn"; cd ../..; done
- ***
- find . -iname "index.html" | while read f; do grep -Fq '>Index of ' "$f" && echo "$f"; done
Add Comment
Please, Sign In to add comment