Untitled
unknown
plain_text
7 days ago
323 B
2
Indexable
Never
filename="dtcal" if [[ ! -f "$filename" ]]; then echo "Error: File '$filename' does not exist." exit 1 fi linecount=$(wc -l < "$filename") wordcount=$(wc -w < "$filename") charcount=$(wc -m < "$filename") echo "Filename: $filename" echo "Line count: $linecount | Word count: $wordcount | Char count: $charcount"
Leave a Comment