Sort by

recency

|

20 Discussions

|

  • + 0 comments

    Simple Code

    while read TEXT;
    do
        echo "${TEXT}" >> text.txt
    done
    sort -r < text.txt
    
  • + 0 comments

    sort -r

  • + 0 comments
    while read TEXT;
    do
        echo "${TEXT}" >> text.txt
    done
    sort -r < text.txt
    
  • + 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 -r < file.txt
    
  • + 0 comments

    You can find here HackerRank Linux Shell Solutions

    Sort Command #2 HackerRank Solution