1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 12:35:24 +02:00

Merge pull request #214 from felixonmars/head-page

add page for head in mac and linux
This commit is contained in:
Romain Prieto 2014-07-17 09:23:00 +10:00
commit c2c73e94ae
2 changed files with 30 additions and 0 deletions

19
pages/linux/head.md Normal file
View file

@ -0,0 +1,19 @@
# head
> Output the first part of files
- Output the first few lines of a file
`head -n {{count of lines}} {{filename}}`
- Output the first few bytes of a file
`head -c {{size in kilobytes}} {{filename}}`
- Output everything but the last few lines of a file
`head -n -{{count of lines}} {{filename}}`
- Output everything but the last few bytes of a file
`head -c -{{size in kilobytes}} {{filename}}`

11
pages/osx/head.md Normal file
View file

@ -0,0 +1,11 @@
# head
> Output the first part of files
- Output the first few lines of a file
`head -n {{count of lines}} {{filename}}`
- Output the first few bytes of a file
`head -c {{number in kilobytes}} {{filename}}`