Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _________________________________________ Moi ___________________________________________
- #!/bin/sh
- fichiers=0
- for i in $(ls -A); do
- ligne=$(ls -A -l $i)
- premieresLettres=${ligne:0:2}
- #parfois ça marche parfois non, voir type2.sh
- if [ "$premieresLettres" = "-r" ]
- then
- fichiers=$(expr $fichiers + 1)
- echo $i
- fi
- done
- echo $fichiers
- exit 0
- _________________________________________ Lui ___________________________________________
- #!/bin/sh
- # One line to rule them all
- OUT="`find . -maxdepth 1 -type f -exec sh -c "cat '{}' 2>&1 > /dev/null" \; -exec basename {} \;`"
- echo "$OUT\n"
- echo "Nombre de fichiers:" `echo "$OUT" | wc -l`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement