seberm

convers all files exept the scipt.sh file to JPEG format

Oct 17th, 2010
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #/bin/bash
  2.  
  3. x=0
  4.  
  5. for file in ./*
  6. do
  7.     if [ "${file}" == "./script.sh" ]
  8.     then
  9.       continue
  10.     fi
  11.  
  12.     convert $file $x.jpeg
  13.     let "x += 1"
  14. done
Add Comment
Please, Sign In to add comment