Count Lines in Shell
Level 114 keystrokes
wc -l counts the number of lines in a file.
Shell code
# wc = word count; -l counts only newline characters (lines)# Prints the count followed by the file name: 1000 data.csv1wc -l data.csvOutput
1000 data.csv
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Shell code and how often they appear.
-× 1.× 1