Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh -e
- mkdir -p ./OUTDATA
- for src in $(find . -maxdepth 3 -mindepth 3 -type f -name "OUTDATA.dat")
- do
- dest=$(echo $src | sed 's;^\./\([0-9]\+\)/\([0-9]\.[0-9]\|[0-9]\).*$;OUTDATA_\1-\2.dat;g')
- echo cp $src ./OUTDATA/$dest
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement