Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal EnableDelayedExpansion
- FOR /D %%G IN (fold*) DO (
- MKDIR "%cd%%%G/proj"
- CALL mover.bat %%G proj
- )
- @echo off
- setlocal EnableDelayedExpansion
- FOR /R %cd%%1 %%h IN (*.txt) DO (
- MOVE %%h %1/%2
- )
- #!/bin/bash
- shopt -s dotglob
- find * -prune -type d | while read d; do
- mkdir "$d"/proj
- mv "$d"/*.txt "$d/proj"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement