Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash "wc -l"

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).
Source by explainshell.com #
 
PREVIOUS NEXT
Tagged: #bash
ADD COMMENT
Topic
Name
6+7 =