[Durham] another sort question - numbers in slashes
Nick
durham-lug at njw.me.uk
Thu Nov 7 00:42:02 UTC 2013
Hi Dougie,
> I can't work out how to sort on the switchname and numerically sort on the
> switchport. I don't know what I'm missing, but I'm missing it, whatever it
> is.
Can you zero-pad the switch bit? So 1/0/2 becomes 01/0/02? That
would probably be an easy way to solve it.
If that isn't easy from the file creation end, you could use awk to
do it for you in a pipeline. If you know awk that's pretty easy, if
not ask me and I'll come up with an incomprehensible but concise bit
for you :)
Nick
More information about the Durham
mailing list