ProgrammingThis 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.
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.
Go back to the start and read through the whole guide too, while you're at it.
Now please stop asking us to do your work for you, and try to learn something. We've given you everything you need to figure out your problem...so figure it out.
If, after really trying, you still can't quite make it work, post the code you have and we'll help you improve it.
If I asked write contact book script for me that would be "asking us to do your work for you", but I am asking just show solution for only one situation. Or maybe you don't know answer? Then just tell.
I can vouch for the fact that not only does David know the solution but could write it in several different ways.
However, he is trying to help you to learn not only how to solve this issue but also further ones. It seems quite obvious you want the solution
given to you and then when you hit the next problem you will also be back to have it solved for you as well.
As with most questions asked here, show us what you have tried and where you are stuck? You have been provided a number of links that
can help you solve this issue. I will provide yet another link:
Really please help i have been searching for solution half day. I need to make that $recnum should be for example 1-1000 else script do nothing because if I not enter any number it deletes all contacts.
Telling someone that you don't have time to read the answer is a bit insulting. Those who do have the answers for you had to take the time to do the reading so they would have the answers. It isn't obvious how your time is more valuable than theirs, especially given that you are the one who gets all of the tangible benefit from getting the answer.
I enjoy helping people with their scripts, really I do ... but only if they appear to be really interested in learning what I have to teach, and are willing to meet me half-way.
What I do not appreciate is being used as free tech support. If that's all you're interested in, then go pay someone to do the work. It's not my fault or my concern if you're low on time.
I'm sure I'm not alone in this attitude.
It really comes down to the way you present yourself. A person I would enjoy helping would say things like this:
I read the link, but I don't quite understand it. Here's what I tried. I think it should output "foo", but it's not working for me. Where am I going wrong? <posts example code>
Thanks for your help. This is what I came up with, and it seems to work. Are there any problems with it? <posts example code>
I see, so if you "foo" the "bar", then the "baz" will "bum", right? But what happens if you "bar" the "foo", like this? <posts example code>
This person shows interest in learning, and is participating in a two-way conversation. I would go out of my way to research things so we could both learn.
On the other hand, here's what a person I wouldn't want to help sounds like:
I can't find what I need
Can you write me an example?
Do you know how to fix this problem?
Sorry. I don't understand.
anyone?
When you don't have a lot of time those links are useless.
He also doesn't post any work of his own, or display any evidence that he's read any documentation or tried any of the links or advice previously given. Such a person just sounds like a time-sink.
I think you really need to read Eric S. Raymond's excellent guide on how to properly ask questions:
And please try to understand that I'm not saying these things to be rude, I'm saying them to help you. This is a community where people come together to help each other learn and solve problems. Present yourself in the right way, and you'll be amazed at how friendly and helpful we can be. But selfish and demanding behavior isn't welcome.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.