Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: editing a csv file using a batch file  (Read 2908 times)

0 Members and 1 Guest are viewing this topic.

danny_L

  • Guest
editing a csv file using a batch file
« on: September 08, 2005, 05:01:03 PM »
Im trying to make my first batch file and  trying to use it to open a csv file and delete the first 6 lines and then move to end and delete the last line.  I have been trying to figure something out the last few days but I havent been successful  ???

here are the first 6 lines im trying to delete in the csv:

Enter value for begin_date: 01-JUN-2005
old 216:    vd_begin_dt           DATE                                 := '&Begin_Date';
new 216:    vd_begin_dt           DATE                                 := '01-JUN-2005';
Enter value for end_date: 05-SEP-2005
old 217:    vd_end_dt             DATE                                   := '&End_Date';
new 217:    vd_end_dt             DATE                                   := '05-SEP-2005';

vibhor_agarwalin



    Adviser

    Re: editing a csv file using a batch file
    « Reply #1 on: September 08, 2005, 10:46:44 PM »
    I can give you a workaround.

    Install cygwin, unix environmen, this will allow you to run unix commands.

    If you do then i can do that in a second.
    Vibhor Kumar Agarwal