-   Linux - Newbie (
-   -   Using Head command question (

caponewgp 08-12-2009 03:17 PM

Using Head command question
Alright I was wondering if I was trying to use the head command to view the first 100 lines of a file but the file only contains like 6 lines will it display the 6 lines I requested then 194 blank lines or just the original six that are in the file.

head -100 info.txt

Thanks again a head of time.

MensaWater 08-12-2009 03:22 PM

That would be easy enough to test - just type it at command line. It only displays it so wouldn't hurt anything.

The answer is no - it will only display the number of lines it finds in the file.

caponewgp 08-12-2009 03:24 PM

Wow thanks for the fast response.

All times are GMT -5. The time now is 01:48 AM.