8 lines
191 B
Text
8 lines
191 B
Text
|
#!/bin/bash
|
||
|
|
||
|
for filename in *.pdf; do
|
||
|
target=$(echo ${filename} | sed 's/^\(\([0-9]\{4\}\)\([0-9]\{2\}\).*\)$/\2\/\3\/\1/')
|
||
|
mkdir -p $(dirname ${target})
|
||
|
mv ${filename} ${target}
|
||
|
done
|