jverce

Untitled

Feb 29th, 2020
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. for year in {2017..2019}
  2. do
  3.   pushd /datos/$year
  4.   for month in {1..12}
  5.   do
  6.     pushd $month/
  7.     for day in `ls`
  8.     do
  9.       pushd $day/
  10.       mv $day tmp
  11.       mv tmp/* .
  12.       rm -rf tmp
  13.       popd
  14.     end
  15.     popd
  16.   end
  17.   popd
  18. end
Advertisement
Add Comment
Please, Sign In to add comment