![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| set EDITOR=vi -> default editor not setting for cron tab | aarora_98 | Shell Programming and Scripting | 6 | 09-12-2008 11:01 PM |
| Removing columns of a file using vi Editor | DilipPanda | UNIX for Dummies Questions & Answers | 2 | 02-08-2008 01:27 AM |
| Trying to space columns in a report | turbulence | Shell Programming and Scripting | 2 | 11-10-2004 01:55 PM |
| swap space / paging space | aaronh | AIX | 2 | 05-19-2004 07:06 AM |
| pageing space vs swap space | VeroL | UNIX for Dummies Questions & Answers | 1 | 01-22-2004 08:54 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to add space in between columns in VI editor
Hi,
I am trying to add space after 3rd and 6th column for editing a file in special format. How should I achieve in VI?. So, is it possible to do in it in sed ? thanks vipa |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
it can be done in either, but would be more easily acomplished with awk:
Code:
awk '$3=$3" ";$6=$6" " { print $0 }' file
|
||||
| Google The UNIX and Linux Forums |