SCR/SCR1.1/find_bigger_files.sh
2023-12-10 15:48:26 +01:00

21 lines
254 B
Bash
Executable File

#!/bin/bash
# A simple program to find
# in the active directory
# the bigger files.
if [[$# -ne 1]]
then
echo "Usage : ./$0 <FOLDER_NAME>"
exit
fi
ls -l $1 > $($1_files.txt)
bigger_file=0
for ligne in $(<$1_files.txt)
do
echo "$ligne"
done
exit