Can you suggest a method to remove records from csv file, manually. I have a csv file with many records, I need to delete unwanted records. Is there any simplest method to remove the unwanted records.
Asked
Active
Viewed 2,353 times
2 Answers
3
manually:
- open the file in your desired text editor, i.e. notepad
- delete the unwanted records (lines)
- save the file
semi automatically: get a good text editor, notepad++, pspad, ... use the built in search and replace function, if you can provide an example string, or regular expression that can identify the unwanted records..
automatically: describe how an unwanted record differs from a wanted record. either by string comparision, regex, count of coloumns in row, or... put that logic into a script, like python, and have that run through the file. SO question on how to do that
2
You can open the file in the notepad application and just delete the rows you don't want?

GPH
- 1,817
- 3
- 29
- 50