![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Every morning we receive .csv files from a vendor and we need to remove the last line which gives information like how many records in the file etc. |
|
In unix there is a command called grep that does similar things, what is the equivalent of this in Windows or for that matter how to do it. I need to bcp in this data into our database. Thanks in advance for the help. |
#2
| |||
| |||
|
|
Every morning we receive .csv files from a vendor and we need to remove the last line which gives information like how many records in the file etc. What is the easiest way to do it. The last line will always be in the following format - TRAILER,#of records In unix there is a command called grep that does similar things, what is the equivalent of this in Windows or for that matter how to do it. I need to bcp in this data into our database. Thanks in advance for the help. |
![]() |
| Thread Tools | |
| Display Modes | |
| |