Lê Thị Thuỳ Trang
New member
How do I switch two columns in Linux?
Answer
How to swap 2 columns or fields in a text or a CSV file?
Using the print statement, simply the fields can be printed in the order in which it is needed. -F is to specify the input field separator and OFS for the output field separator.
Answer
How to swap 2 columns or fields in a text or a CSV file?
Using the print statement, simply the fields can be printed in the order in which it is needed. -F is to specify the input field separator and OFS for the output field separator.