You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
173 B
Bash
11 lines
173 B
Bash
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
POSTS=$(find . -type f -exec stat -c '%Y %n' {} \; | sort -nr | awk 'NR==1,NR==3 {print $2}')
|
||
|
echo $POSTS
|
||
|
for FILE in $POSTS; do
|
||
|
|
||
|
cp -R $FILE $(pwd)/../
|
||
|
|
||
|
done
|
||
|
|