Unix Shell - Swapping three columns in a file in VI editor..

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2006 > Swapping three columns in a file in VI editor..





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Swapping three columns in a file in VI editor..
CKS

2006-12-19, 1:30 am

Hi ALL,
How to swap three columns in a file without using
substitute command in vi editor?

Let us say file with the following contents,

//BOF

A1 B1 C1

A2 B2 C2

//EOF.

Then after swapping the file content should be,

//BOF

C1 A1 B1

C2 A2 B2

//EOF

Thanks in advance,

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com