Implementing wc using awk (without using wc)


/ Published in: Bash
Save to your folder(s)

Usage: awc [OPTION]... [FILE]...
Print newline, word, and byte counts for a FILE
c, --bytes print the byte counts
-m, --chars print the character counts
-l, --lines print the newline counts
-L, --max-line-length print the length of the longest line
-w, --words print the word counts
--help display this help and exit
--version output version information and exit"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.