Grep with BBEdit 7.1.4
July 29, 2004 5:51 PM Subscribe
Is there a way, using Grep with BBEdit 7.1.4, to exclude lines that contain a tab character?
I have a large list that looks similar to this:
Heading
1 Name
Address 555-5555
2 Name
Address 555-5555
Heading
3 Name
Address 555-5555
4 Name
Address 555-5555
I would like to manipulate the Heading lines based on their lack of a tab character. Any ideas?
I have a large list that looks similar to this:
Heading
1 Name
Address 555-5555
2 Name
Address 555-5555
Heading
3 Name
Address 555-5555
4 Name
Address 555-5555
I would like to manipulate the Heading lines based on their lack of a tab character. Any ideas?
Response by poster: Thank you! Now I can stop pulling my hair out.
posted by the biscuit man at 6:45 PM on July 29, 2004
posted by the biscuit man at 6:45 PM on July 29, 2004
I ? regex.
posted by nakedcodemonkey at 7:04 PM on July 29, 2004
posted by nakedcodemonkey at 7:04 PM on July 29, 2004
I ♥ regex.
posted by nakedcodemonkey at 7:05 PM on July 29, 2004
posted by nakedcodemonkey at 7:05 PM on July 29, 2004
Actually, ^[^\t] is enough (a partial match is enough).
Also, I'm not sure if you're talking about some builtin function in bbedit or just the standard unix grep. If the latter, "grep -v '^\t'" is enough, and slightly neater in my opinion.
posted by fvw at 9:53 PM on July 29, 2004
Also, I'm not sure if you're talking about some builtin function in bbedit or just the standard unix grep. If the latter, "grep -v '^\t'" is enough, and slightly neater in my opinion.
posted by fvw at 9:53 PM on July 29, 2004
Oops, didn't read the question properly. Ignore that, use either nakedcodemonkey's suggestion or "grep -v '\t'".
posted by fvw at 9:54 PM on July 29, 2004
posted by fvw at 9:54 PM on July 29, 2004
This thread is closed to new comments.
posted by nakedcodemonkey at 6:08 PM on July 29, 2004