LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using AWK to print out the first few lines of a txt file (https://www.linuxquestions.org/questions/linux-newbie-8/using-awk-to-print-out-the-first-few-lines-of-a-txt-file-894150/)

mskalak 07-27-2011 02:23 PM

Using AWK to print out the first few lines of a txt file
 
Hi,

I have a few rather large text files, and I need a way to look at the first three lines of each. Is there a way to do this using awk?

Thanks!

crts 07-27-2011 02:34 PM

Hi,

does it have to be awk? Normally you would use
head -n 3 file

to do this.

mskalak 07-27-2011 02:52 PM

Thanks!

crts 07-27-2011 02:58 PM

You're welcome. Please mark the thread as solved.


All times are GMT -5. The time now is 06:22 AM.