8 lines
171 B
Bash
Executable File
8 lines
171 B
Bash
Executable File
#!/bin/bash
|
|
|
|
[[ $1 ]] || exit 1
|
|
|
|
CHARS=$(wc -c $1 | awk '{print $1}')
|
|
LINES=$(wc -l $1 | awk '{print $1}')
|
|
|
|
echo "Le fichier contient $LINES lignes et $CHARS caractères." |