and I want the output to only contain the line with the highest value for each, so the output I want is:
alpha3
beta2
gamma9
I also need to make it understand that there may be new values like delta and epsilon etc added down the track and to just extract the highest numbered line.
how do I do this? really pulling my hair out, I've googled for hours. thanks so much!
I'm quite new at this and the command I'm using is just a bash command that pipes the output to the next stage. i'm not sure what to do with the new lines since i'm just adding this to my existing command and entering it in terminal.
For using in a chain of pipes you can put the awk program (the stuff between the two ' chars but without them) into a file (say: "awkfile") and then use it like
the source is now going to contain what is essentially a list of old database files that are stored in a hierarchical format, for example (yes this is keyboard bashing to indicate random miscellaneous words)
the commands you guys have posted above seem to get muddled because its trying to sort the lines without understanding they need to ignore everything before the final "/"
It helps if the data sample is an accurate representation from the start... Data samples also need code tags around them so that they are easy to read...