Advertisement
cd62131

rename

Apr 15th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/bash -e
  2. typeset -i i;
  3. typeset -ig N=10000
  4. for ((i = (N + 1) / 2 + 1; i <= N; i++)); do
  5.   echo mv $((i)).pdf $((i))save.pdf
  6. done
  7. for ((i = 1; i <= (N + 1) / 2; i++)); do
  8.   if ((i == (N + 1) / 2));then continue; fi
  9.   echo mv $((i)).pdf $((N + 1 - i)).pdf
  10. done
  11. for ((i = (N + 1) / 2 + 1; i <= N; i++)); do
  12.   echo mv $((i))save.pdf $((N + 1 - i)).pdf
  13. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement