How To Count The Number Of Lines In A File In Linux Shell Command
how to count the number of lines in a file in linux shell command
how, to, count, the, number, of, lines, in, a, file, in, linux, shell, command
How To Count The Number Of Lines In A File In Linux Shell Command
Post Description: how to count the number of lines in a file in linux shell command
POST# 944
Posted On: Fri Feb 29, 2008 12:01 pm
tomas
Topic: How To Count The Number Of Lines In A File In Linux Shell Command
ok, you have a file and you want to know how many lines it has right?

if you are like me, sometimes we need to know this infromation for some reason or another. well today you are in luck because you've found a cool little tutorial i wrote just to show people like you and me who are learning linux how to send or used linux shell command.

ok the command you need to use is wc

for example, if i have a file called my_text.txt and i want to know how many lines this file has, all if would have to do is send this command:

wc -l my_text.txt

COUNTING ONLY LINES
Like mos UNIX commands, the wc command offers options that instruc the wc to run in different ways, you can tell wc to limit the count just lines, words or characters or any combination of each.


No Repies
(0) Comments for How To Count The Number Of Lines In A File In Linux Shell Command

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload