[H-GEN] file conversions

staeci at yahoo.com staeci at yahoo.com
Thu Feb 15 05:16:53 EST 2001


my 2 cents, not too sure about the exchange rate...

I don't know anything about ref manager or bibtex but if the file is
text couldn;t you just search and replace the seperator character with
a newline character.

off the top of my head in perl baby talk where seperator = :, script
name=choppa and data file = ref.txt

---------------------------

#!/usr/bin/perl

open(data_file, $ARGV[0]);
@data=<data_file>;
close data_file;

$end=@data;

for($x=0;$x<$end;$x++)
{
$data[$x] =~ s/:/\n/g;
print $data[$x];
}


-------------------------

./choppa ref.txt > new_ref.txt


--
Darrin Mison
-- 
	"Mach was the greatest intellectual fraud in the last ten years."
	"What about X?"
	"I said `intellectual'."
		;login, 9/1990
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20010215/d275f2e9/attachment.sig>


More information about the General mailing list