Maitre_yoda_models/dataset/cp-random.sh

6 lines
91 B
Bash
Executable File

#!/bin/bash
ls "$1" | sort -R |tail -$3 |while read file; do
cp "$1""/""$file" "$2"
done