Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,648
Rep:
A side question: The task could here be solved by replacing the 38th and 39th char with a ?. Can this be done with sed or another command? Reading in the sed oneliners I see only solutions for lines, for example print line 7 until 9, but not one for characters within a line, defined by their absolute position.
My question is: I have to find the Max Number in the VALID_LINES FILED AND PUT IT INTO THE numberofpaylines field.
Man ... you need to learn to think clearly before posting
a question... define what constitutes a valid line, and
what a payline might be. Is this going to be another back
and forth between the two of us for 5 posts each until you
finally tell us what you actually want?
You have posted a significant number of messages that have left us very confused.......
For one thing, you just posted something that you said was anew thread, but it was posted as a reply to the old one. To make a new thread, you have to click on the button that says...............NEW THREAD!!
Out of curiousity, several of us have suggested that you read some tutorials on utilities such as sed and awk. What have you read??
VALID_LINES = 1 3 5 7 9 noofpaylines should be = 9
VALID_LINES = 1 5 10 15 noofpaylines should be = 15
VALID_LINES = 1 2 3 noofpaylines should be = 3
*sigh*
Now, in (whatever that was an example of, be it the table,
the desired output or some attempt to be descriptive) the
above, is noofpaylines supposed to be the last element on
the line, or the highest figure? And what is the purpose
of the
VALID_LINES =
?
Thank you so much. It's almost working fine, but in the valid_lines filed first line is not taking
For eg: VALID_LINES=1
VALID_LINES=1 3 5 7 9
VALID_LINES=1 2 3 4 5
You mean "first column"? Anyway, glad I got you started ;}
and you REALLY should learn the ropes, mate. Or have somebody
else with some programming knowledge at your workplace do
these things.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.