Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -eq 0 ]
- then
- taille=1024
- elif [ $# -eq 1 ]
- then
- taille=$1
- else
- echo "Ce programme n'accepte qu'un argument au maximum."
- exit 1
- fi
- fichier=$(ls)
- for f in $fichiers
- do
- t=$(ls -l $f | cut -d ' ' -f5)
- if [ $t -gt $taille ]
- then
- echo $f
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement