Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

wc - l

wc file.txt
10		20		500 	file.txt
lines	words	bytes	file_name
wc -l file.txt # Counts only lines (-l)
wc -w file.txt # Counts only words (-w)
wc -c file.txt # Counts only bytes (-c).
 
PREVIOUS NEXT
Tagged: #wc
ADD COMMENT
Topic
Name
6+9 =