Maitre_yoda_models/dataset/rm-random.sh

6 lines
91 B
Bash
Executable File

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