At 08:33 -0700 14/10/2010, jtk wrote:

Has anyone figured out how to automatically place a character (e.g.,
&) in the same column of selected lines? This would be really useful
for Fortran continuation lines. So far I can't see how to do it other
than spacing one by one over from the end of the text to column 73,
which is really tedious if you're updating old code with a lot of
continuation lines.

I don't see quite what you're wanting to do, but the following UNIX filter will insert an ampersand after the 73rd character of selected lines or of all lines in the target document if no selection is made. You need only modify the substitution line to get what you want, I guess:

# /usr/bin/perl
while (<>) {
  s~^(.{73})(.*)~$1&$2~;
  print;
}

JD

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to