Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-28-2011, 11:49 AM
|
#16
|
Member
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811
Rep: 
|
Quote:
Originally Posted by quanta
@wje_lq: I mean the caret sign in ^No. in my code, not caret sign in form feed
|
Very good. :) That fixes it.
It does leave one question: what to do with the form feeds. fad216 didn't specify what he wanted done with those, but we can speculate that he might be reading the output data with another program, which might be confused by form feeds, so he might want to remove them. - kurumi leaves each form feed at the end of the file that precedes it.
- makyo leaves each form feed at the beginning of the file that follows it.
- So does Nominal Animal.
- So does quanta (as revised).
- wje_lq removes the form feed entirely.
At this point, fad216 can pick and choose.
|
|
|
03-01-2011, 12:05 AM
|
#17
|
LQ Newbie
Registered: Feb 2011
Posts: 11
Original Poster
Rep: 
|
thanx everyone that reply for my problem...I have get solution from all of you...the solution from Nominal Animal, quanta and kurumi is produced same output that I want which is create new file each split data. The other solution using bash [ makyo], clisp [ wqe_lq], I don't know how to implement or maybe I don't have install clisp and bash. But I think everything is same output...thanks everyone 
|
|
|
03-02-2011, 06:15 AM
|
#18
|
Member
Registered: Apr 2010
Posts: 228
Rep:
|
Quote:
Originally Posted by wje_lq
Yes. But beyond stating the version number, it's important, if you're reaching out to potential ruby users, to say that the version you use makes a difference.
|
then I would be very busy isn't it? I have to test my code for every version of Ruby to see if they fit all. So returning you the favor, did you test your clisp script for every version as well? And clisp? Its cool that not often you see people using clisp to do such tasks, but I myself find it esoteric, ugly and unreadable (no offense, this is just a personal 2 cents). Besides, i don't see many people using it for everyday sysadmin tasks...except for academic maybe?
Quote:
Even so, when I used ruby 1.9, the output files were named wrong. In the following run, the input file is named data.txt, and I do a precautionary removal of the output f* files at the beginning.
|
hey but OP says he has got the correct output...so ...
|
|
|
All times are GMT -5. The time now is 07:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|