Giter VIP home page Giter VIP logo

head-tail's Introduction

Head- 'usage: head [-n lines | -c bytes] [file ...]'

head file1 file2 ...
    display first lines of a file. By default it will show maximum 10 lines.
    It should work for multiple files in the same way.
 
head -n lines file1 file2 ..
    Displays the first count of lines as specified in option.

head -c bytes file1 file2
    Displays first count of bytes as mentioned in option.

Tail- 'usage: tail [-c # | -n #] [file ...]'

  tail file1 file2
    -- display the last part of a file.

 -n number
    The location is number lines.
    Should display given number of last lines.

  -c number
    The location is number bytes.
    Should display given number of last characters.

  -r file1 file2
    The -r option causes the input to be displayed in reverse order, by line.  Additionally, this option changes the meaning of the -b, -c
    and -n options.  When the -r option is specified, these options specify the number of bytes, lines or 512-byte blocks to display,
    instead of the bytes, lines or blocks from the beginning or end of the input from which to begin the display.  The default for the -r
    option is to display all of the input.

  -q file1 
    Suppresses printing of headers when multiple files are being examined.

head-tail's People

Contributors

azhar-beg avatar blpabhishek avatar github-classroom[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.