HomeBash shell How to sort the content of a file? byAlFarhat •July 28, 2015 0 p3.sh #!/bin/bash sort=`sort /etc/passwd` echo "shorted list are:" echo "$sort" :./p3.sh Tags: Bash shell linux shell scripting sort content in a bash shell sort content of a file Facebook Twitter