add page for head in mac and linux
This commit is contained in:
parent
4909ce329b
commit
195d8d34f9
|
|
@ -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}}`
|
||||
|
|
@ -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}}`
|
||||
Loading…
Reference in New Issue