Search found 2 matches
- Sat Jan 28, 2006 7:34 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: How to Remove Lines if Identical up to Second Comma?
- Replies: 1
- Views: 8148
How to Remove Lines if Identical up to Second Comma?
I have perl code which works for removing lines in a .CSV(comma-separated values) file identical up to first comma(i.e. when first "key" is identical). EXAMPLE INPUT (The line numbers are only for identification, they wouldn't be part of the input): 1: 123,abc,XYZ 2: 123,def,UVW 3: 456,abc...
- Tue Jan 10, 2006 6:40 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Remove Lines where first character is space
- Replies: 1
- Views: 8180
Remove Lines where first character is space
Hello,
I'm trying to use Perl for the first time. I have a 9400 line text file in which I need to remove lines that start with a space, i.e. a space in the first character position of the line.
Could someone send on the perl syntax to do this one?
Thanks much,
j2
I'm trying to use Perl for the first time. I have a 9400 line text file in which I need to remove lines that start with a space, i.e. a space in the first character position of the line.
Could someone send on the perl syntax to do this one?
Thanks much,
j2