daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "Escolha o ano para renomear as portarias"
  3. read input_ano
  4. for i in *.pdf;
  5.     do
  6.     J="${i/pg_0/}"
  7.     mv "$i" "portariarh-${J/.pdf/}-$input_ano".pdf;
  8. done
RAW Paste Data
Top