I'm trying to read numbers from .txt file and than store it into array so I can sort them using bubble sort.
I was trying something like that:
input=$1
readIt=`cat $1`
array=${#readIt[*]}
When I was trying to display it using echo it is displaying good, but when I'm trying to sort it, then it doesn't work.
Any help, please?
EDIT: I checked other topics, but I want to solve this problem using "cat" to understand it in easier way as beginner.