# Améliorer la présentation de la sortie de "find"

**URL:** <https://www.debian-fr.org/t/ameliorer-la-presentation-de-la-sortie-de-find/87404>\
**Category:** Support Debian\
**Created:** [Novembre 13, 2022, 7:23 UTC](https://www.debian-fr.org/t/ameliorer-la-presentation-de-la-sortie-de-find/87404 "2022-11-13T07:23:00Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![anon29980398](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@anon29980398](https://www.debian-fr.org/u/anon29980398)\
**Post date:** [Novembre 13, 2022, 9:47 UTC](https://www.debian-fr.org/t/ameliorer-la-presentation-de-la-sortie-de-find/87404/11 "2022-11-13T09:47:23Z")

</div>

Bonjour

Il manquait une paire de guillemets,  
ce qui donnerait :

```auto
lsfd() { i=0 ; j=0
  while read L ;do basename "$L";((i++));done < <(find -maxdepth 1 -type f |sort)
  printf "● Nombre de fichiers: $i\n\n"
  while read L ;do printf "$L ";((j++));done < <(/usr/bin/ls -d */)
  printf "\n● Nombre de répertoires: $j\n"
}

```

* * *

Il faudra trouver un autre nom que [lsfd](https://manpages.debian.org/testing/util-linux-extra/lsfd.1.en.html)

---

_[View the full topic](https://www.debian-fr.org/t/ameliorer-la-presentation-de-la-sortie-de-find/87404)._
