Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

wc - l command in linux

wc file.txt
10		20		500 	file.txt
lines	words	bytes	file_name
wc -l file.txt # Outputs only lines (-l)
wc -w file.txt # Outputs only words (-w)
wc -c file.txt # Outputs only bytes (-c).
 
PREVIOUS NEXT
Tagged: #wc #command #linux
ADD COMMENT
Topic
Name
4+1 =