The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem in converting password protected excel file to csv file in unix Devivish UNIX for Advanced & Expert Users 2 03-30-2009 07:56 PM
Problem writing file path to txt file Vintage_hegoog UNIX for Dummies Questions & Answers 1 01-15-2009 05:22 PM
File Name Problem from FTP czbtony Shell Programming and Scripting 1 05-12-2008 08:17 PM
What's the problem with the pdf file?? new_hand UNIX for Dummies Questions & Answers 1 09-21-2005 08:56 AM
file not found..but file is there, also zip problem caddyjoe77 UNIX for Dummies Questions & Answers 4 04-23-2005 05:47 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2009
dsravan dsravan is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 186
problem with parting using vi in a file

I am trying to paste around 100 lines into a file using VI and pasting but seems the data is going from left to right in this fashion. Is there any setting that I need to set in vi or terminal? Please let me know.

Quote:
DAY_OF_WK_NAME_UPR VARCHAR2(20 CHAR),
DAY_OF_WK_NBR_SAT NUMBER,
DAY_OF_WK_NBR_SUN NUMBER,
DAY_OF_WK_NBR_MON NUMBER,
HOLIDAY_FLAG VARCHAR2(1 CHAR),
HOLIDAY_FLAG_US VARCHAR2(1 CHAR)
  #2 (permalink)  
Old 07-02-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 968
You mean the pasted data looks like this...

Code:
DAY_OF_WK_NAME_UPR VARCHAR2(20 CHAR),
        DAY_OF_WK_NBR_SAT NUMBER,
                DAY_OF_WK_NBR_SUN NUMBER,
                        DAY_OF_WK_NBR_MON NUMBER,
  ...
Then you need to ":set noai" (from command mode - to get there, press Esc. Then : (colon) set noai (meaning no auto-indent). Then paste again.)

You can change this "auto-indent" behaviour permanently by editiing ~/.ex.rc (or some such). Use

Code:
:set
From the VI command mode to see what is set.

Last edited by scottn; 07-02-2009 at 05:00 PM..
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0