Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6858
| X-Received | by 10.224.137.137 with SMTP id w9mr218657qat.6.1375875982599; Wed, 07 Aug 2013 04:46:22 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.3.70 with SMTP id a6mr410244iga.16.1375875982523; Wed, 07 Aug 2013 04:46:22 -0700 (PDT) |
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!f7no1481121qan.0!news-out.google.com!he10ni877qab.0!nntp.google.com!fx3no1547848qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.ruby |
| Date | Wed, 7 Aug 2013 04:46:22 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=121.244.158.2; posting-account=Z6vClgoAAADASleUXsnDrWXhbjlFhEJc |
| NNTP-Posting-Host | 121.244.158.2 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <82f9d89b-33da-48cc-adc8-1a6776f29050@googlegroups.com> (permalink) |
| Subject | unterminated string meets end of file |
| From | div n <divya.n25@gmail.com> |
| Injection-Date | Wed, 07 Aug 2013 11:46:22 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Received-Bytes | 1637 |
| Xref | csiph.com comp.lang.ruby:6858 |
Show key headers only | View raw
Tried the following script on MAC os using ruby , but i get the following error
#$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
#$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')
require 'rubygems'
require 'yajl'
require 'json-compare'
files = Dir.glob("../Downloads/Emailing__a/b.json")
@original_string_or_regex = "\""
@replacement_string = """
text = File.read(files)
puts = text.gsub(/@original_string_or_regex/, @replacement_string)
File.open(filename, 'rw') { |file| file << puts }
but i get the following error.
unterminated string meets end of file
can anyone suggest on how to fix this?
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar
unterminated string meets end of file div n <divya.n25@gmail.com> - 2013-08-07 04:46 -0700
Re: unterminated string meets end of file Andi Altendorfer <iboard.cc@gmail.com> - 2013-08-07 06:13 -0700
Re: unterminated string meets end of file div n <divya.n25@gmail.com> - 2013-08-08 02:23 -0700
Re: unterminated string meets end of file Andi Altendorfer <iboard.cc@gmail.com> - 2013-08-08 04:07 -0700
Re: unterminated string meets end of file Simon Krahnke <overlord@gmx.li> - 2013-08-08 21:31 +0200
Re: unterminated string meets end of file Robert Klemme <shortcutter@googlemail.com> - 2013-08-12 21:15 +0200
csiph-web