SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. ############################################
  3. # (C) GNU General Public License, version 2
  4. ############################################
  5. UNSORT_FILE=$(mktemp /tmp/unsorted.XXXXXXXXX)
  6. SORT_FILE=$(mktemp /tmp/sorted.XXXXXXXXX)
  7. UNSORT_TEXT=$(zenity --text-info --title="Enter Unsorted Content" --width=500 --height=300 --editable)
  8. cat <<EOF > ${UNSORT_FILE}
  9. ${UNSORT_TEXT}
  10. EOF
  11. cat ${UNSORT_FILE}
  12. sort ${UNSORT_FILE} > ${SORT_FILE}
  13. zenity --text-info --title="View Sorted Content" --width=500 --height=300 --filename=${SORT_FILE}
  14. rm ${UNSORT_FILE} ${SORT_FILE}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top