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
Remove Lines where first character is space
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
-
- Posts: 2
- Joined: Tue Jan 10, 2006 6:28 am
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Use a Remove\Matching lines filter, with a perl pattern of
(That's a space after the ^)
Or use
Code: Select all
^
Or use
Code: Select all
^[ ]