[PLUG] Another OO.o question
Bill Barry
barryb at proaxis.com
Mon Mar 24 21:35:02 UTC 2003
On Mon, Mar 24, 2003 at 01:45:13PM -0800, Rich Shepard wrote:
>
> How can I specify a tab or hard return in the search and replace dialog
> box? I have about 50 pages of references where the first line is set in by
> two tab stops. I want to eliminate those in one, automatic S&R operation.
> Similarly, I want to replace the hard returns at the end of each line with
> the citation paragraph.
How about a small perl script.
Here is one to get rid of the two tabs at the beginning of a line
#-------------
#!/bin/perl
while(<>)
{
s/^\t\t//;
print;
}
#----------
As for replacing the hard returns, what is a "citation paragraph"?
Bill
More information about the PLUG
mailing list