We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Linux Shell
  3. Text Processing
  4. Head of a Text File #1
  5. Discussions

Head of a Text File #1

Problem
Submissions
Leaderboard
Discussions
Tutorial

Sort 44 Discussions, By:

recency

Please Login in order to post a comment

  • navneethraghu08
    1 month ago+ 0 comments

    head -n20

    0|
    Permalink
  • gangadharghru67
    4 months ago+ 0 comments

    You can find here HackerRank Linux Shell Solutions

    Head of a Text File #1 HackerRank Solution

    0|
    Permalink
  • chase2learns
    5 months ago+ 0 comments

    Head of a Text File #1 HackerRank Solution

    https://www.chase2learn.com/hackerrank-linux-shell-solutions/

    0|
    Permalink
  • artur_ludwik
    6 months ago+ 0 comments
    head -n 20
    
    0|
    Permalink
  • lzy_fox
    7 months ago+ 0 comments

    cat command is used to create a file using '>' ,then we use the head command followed with -n(stating it requires lines) then number of lines and lastly the file name to run the command on... cat > file1 head -n 20 file1

    -1|
    Permalink
Load more conversations

Need Help?


View tutorial
View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy