mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
12 lines
237 B
Bash
Executable File
12 lines
237 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NOW="$(date +%s)"
|
|
mkdir -p "archive/$NOW"
|
|
ls | while read NAME; do
|
|
if [[ "$NAME" != "cleanup.sh" ]] && [[ "$NAME" != "archive" ]]; then
|
|
echo "mv $NAME archive/$NOW"
|
|
mv "$NAME" "archive/$NOW"
|
|
fi
|
|
done
|
|
|