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
 (328) Domains for just $1.99 1751586
How To Count The Number Of Lines In A File In Linux Shell Command
Post Description:
Post Tags: how, to, count, the, number, of, lines, in, a, file, in, linux, shell, command
This Post Has Been Viewed 4866 Times Since Wed Dec 31, 1969 4:33 pm Posted By tomas with 4 replies
Next Post »» How to get display list of previous commands used in linux shell
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.

did this short tutorial helped you?



Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Count The Number Of Lines In A File In Linux Shell Command




:: 1 :: #50738 - Reply By me :) On Sat Apr 19, 2008 6:32 am
just what i was looking for, thanks!
:: 2 :: #56724 - Reply By himadri On Fri Jun 06, 2008 10:38 am
oh yes it certainly did ..thanks a lot mate
:: 3 :: #57246 - Reply By mateen On Tue Jun 10, 2008 4:31 am
yes, tutorial is really helpful.
:: 4 :: #60701 - Reply By amit kohan On Mon Jul 07, 2008 10:59 am
yes, it was very helpful. thanks and looking forward to learn more here.

regards.