Sorting a file with a variable name
I am trying to sort a file, so I can compare it to another file later.
I am storing the file name in a variable called curMo.
I then call sort $curMo and it hangs for a very long time and I have to quit the process.
Any idea why this is not working or how to make it work?
Here is part of my code:
#sort this file for this Location
sort -u $curMo -o $curMo.sorted