script-linux/clp

10 lines
246 B
Plaintext
Raw Permalink Normal View History

2023-02-02 16:52:22 +01:00
#!/bin/bash
2023-02-04 11:52:42 +01:00
# compte le nombre de ligne ecrite dans un fichier text
2023-02-02 16:52:22 +01:00
if [[ $1 != "" ]]; then
cd $1
fi
var=$(find . | grep -v "\\.git" | grep -v "build" | xargs file -i | grep text | sed "s/:.*//g" | xargs wc -l | grep total)
2023-04-13 11:21:54 +02:00
echo ${var% total}