Using the sort command with an if/then statement
Well, I figured out the other part, now I need to get this part of my homework done.
So part of my assignment is to make a simple code where I enter four names as a command line parameter. After the names are displayed, then the program must sort the output so if I enter:
It will show the names and then sort the output to show
The only thing is, I can't get it to sort, I keep getting this error: "sort: open failed: +m: No such file or directory"
Once again, let me know what I did wrong. Here is my code...
if [ $# = 4 ]
echo You have entered these four names
echo You must enter four names only
sort $ phantom
Thanks for your help and your patience...