Skip to main content
2 of 3
edited title
daisy
  • 55.9k
  • 80
  • 253
  • 402

Reordering strings in linux

How to change lines in linux/bash? e.g. I have this lines:

    Acct-Status-Type = Start
    User-Name = "37XXXXXXX"
    Event-Timestamp = "Apr 12 2013 15:56:55 AMT"

Need to change to this:

    Event-Timestamp = "Apr 12 2013 15:56:55 AMT"
    User-Name = "37XXXXXXX"
    Acct-Status-Type = Start

Also need to do this by one command, sed, awk, perl or smth like it. Thanks.