Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- touch comments
- wget http://gravitytales.com/novel/king-of-gods/kog-chapter-{1..825}/comments
- rm comments
- for file in comments.*
- do
- chapter="${file/comments./}"
- padded="$(printf "%03d" $chapter)"
- file2="kog-$padded-comments.html"
- mv "$file" "$file2"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement