ajout clp

This commit is contained in:
_N3m0 2023-02-02 16:52:22 +01:00
parent b1650317c3
commit 8c930f3b4d
1 changed files with 10 additions and 0 deletions

10
clp Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if [[ $1 != "" ]]; then
cd $1
elif [[ $(ls . | grep "src") = "src" ]]; then
cd src
fi
var=$(find . | grep -v ".git" | xargs file -i | grep text | sed "s/:.*//g" | xargs wc -l | grep total)
echo "nombre de ligne :" ${var% total}