I'm trying to find the character or string to use in a batch grep find/ replace pattern that will insert the file's name into the result. Here's my grep replace pattern:
In the search pattern, there's a # sign in the link (href="#"), and I want to replace the # sign with the filename. I've found Perl's charater: $file, but it doesn't work in grep.
So, is there a character that will allow me to do this, or am I out of luck?
TIA,
Bob
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Jan 02
Patrick James Re: Character to find "filename" in grep?
Jan 02, 2009; 10:43
Patrick James
Re: Character to find "filename" in grep?
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!