Linux: cómo saber cuántas líneas tiene un archivo

Si queremos saber el número le línea que esta compuesto un archivo lo podemos hacer con el comando wc

# wc -l /directory/file

 

En caso que el archivo sea muy grande es posible os vaya mas rápido con awk

# awk '{x++}END{print x}' /directory/file

 

 

5 thoughts on “Linux: cómo saber cuántas líneas tiene un archivo

  1. I just like the valuable information you provide
    for your articles. I’ll bookmark your weblog and check
    once more right here frequently. I’m reasonably
    certain I’ll be told many new stuff right here!
    Good luck for the following!

  2. I am really enjoying the theme/design off your weblog. Do you
    ever run into any browser compatibility problems?
    A smalll number of my blog audience have complained about my blog nnot operating
    correctly in Explorer but looks gredat in Safari. Do you have aany sugghestions to help fix this issue?

  3. Quality articles or reviews is the main to invite the visitors to go to
    see the web site, that’s what this site is providing.

  4. There are a number of different businesses that may want to successfully offer promotional products to their clients of consumers in order to increase consumer loyalty or word of mouth about the company.
    It is the most delightful and fascinating journey you will ever take.
    During Halloween and in other costume occasions,
    males often opt for the Darth Vader look, clones,
    or as Han Solo, but for the ladies, Queen Amidala.

    Also visit my webpage … mobile strike hack for
    android (Jewel)

Leave a Reply

Your email address will not be published. Required fields are marked *