c program to sort records in a file in linux code example
Example: sorting output bash
# Use sort command
input_text | sort
# or
input_text | sort -r
# For reverse
# Use sort command
input_text | sort
# or
input_text | sort -r
# For reverse