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

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Linux Shell
  3. Text Processing
  4. Tail of a Text File #1
  5. Discussions

Tail of a Text File #1

Problem
Submissions
Leaderboard
Discussions
Tutorial

Sort 20 Discussions, By:

recency

Please Login in order to post a comment

  • cahitbarkinozer
    4 weeks ago+ 0 comments
    while read lines; do
        echo $lines >> file.txt
    done
    tail -n 20 < file.txt
    
    0|
    Permalink
  • florin_tanasa
    3 months ago+ 0 comments
    #!/bin/bash
    rm file.txt > stdout.tx 2> stderr.txt
    while read LINES;
    do
    echo $LINES >> file.txt
    done
    tail -n20 < file.txt
    
    0|
    Permalink
  • gangadharghru67
    8 months ago+ 0 comments

    You can find here HackerRank Linux Shell Solutions

    Tail of a Text File #1 HackerRank Solution

    0|
    Permalink
  • chase2learns
    9 months ago+ 0 comments

    Tail of a Text File #1 HackerRank Solution

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

    0|
    Permalink
  • artur_ludwik
    10 months ago+ 0 comments

    tail -20

    0|
    Permalink
Load more conversations

Need Help?


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