This is a simple guide for non-pro bash users to do random but annoying tasks in just seconds
Your boss will be happy and you'll be less stressed ;)
################################################################################## | |
# O'Reilly Free Books link extractor | |
################################################################################## | |
# | |
# Extracts all links from O'Reilly website to automate free eBook download. | |
# Looks for existing files in the current directory to avoid downloading the same | |
# book twice. | |
# | |
################################################################################## | |
# |
#!/bin/bash | |
#Massive renaming of files call it: ./rename.sh base_name | |
N=1 | |
name=$1 | |
for file in *.jpg; do | |
full_name=$name"_$N.jpg" | |
mv "$file" $full_name | |
let N=N+1 | |
done |