Advertisement
shiziksama

Untitled

Oct 28th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. rm tofiles.sh
  2. sqlite3 images.db "select image_url from images where compressed=0 order by size desc"|head -n 100|\
  3. while read n
  4. do
  5.     file_url=`echo $n|sed 's|/|=|g'|sed 's|.=|images/|'`
  6.     echo "cp \"$n\" \"$file_url\"">>tofiles.sh;
  7. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement