I apologise for not being able to put what I mean into words very well. Is there an easy way to swap two pieces of text around?
I have a monstrosity of a line I've written for bash, and inside it is this
Which you probably know shows the fifth and eighth element in a line of elements separated by spaces. What I'd like to know how to do though is to swap them around. I triedCode:cut -d ' ' -f 5,8
But that doesn't swap them around at all.Code:cut -d ' ' -f 8,5
So, is there an easy way to do this?