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. Sort Command #4
  5. Discussions

Sort Command #4

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

Sort 33 Discussions, By:

recency

Please Login in order to post a comment

  • florin_tanasa
    2 weeks ago+ 0 comments
    #!/bin/bash
    rm file.txt > stdout.txt 2> stderr.txt
    while IFS= read -r line || [ -n "$line" ]; do
      echo "$line" >> file.txt
    done 
    sort -n -r < file.txt
    
    0|
    Permalink
  • ismailoksuz
    3 months ago+ 0 comments

    sort -n -r

    0|
    Permalink
  • aadinew7
    6 months ago+ 0 comments

    You can find here HackerRank Linux Shell Solutions

    Sort Command #4 HackerRank Solution

    0|
    Permalink
  • adiadi7898
    6 months ago+ 0 comments

    sort -rn

    0|
    Permalink
  • ehsan_estaji
    7 months ago+ 0 comments

    sort -V -r

    0|
    Permalink
Load more conversations

Need Help?


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