Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
We have application that feeds to a script. It has 3 variables and I am passing it as arguments.
script_name $1 $2 $3
The $1 and $2 is a string while $3 consist of bunch of strings with new line. I notice if there is new line, it was not able to receive properly but if it is a one line there is no issue.
Any recommendation or is it not possible to use argument with new line?
The Bash manual is one of the best sources of information on shells (even if using a non-Bash shell; it splits the POSIX and Bash-specific stuff out). Section 3.1 is relevant here.
The Bash manual is one of the best sources of information on shells (even if using a non-Bash shell; it splits the POSIX and Bash-specific stuff out). Section 3.1 is relevant here.
You're not much help.
Forums exist because the majority of people would rather not waste time reading.
That statement is wrong. People need to read anyway, either the original page or the forum. But without reading it won't work.
Copying huge amount of text into LQ is meaningless too.
Anyway, this is a problem with quotation (of arguments). You can either drop in a quick-fix (without comments) or try to explain what went wrong and how can anyone fix it - not only now, but next time too.
Additionally you can suggest external sites (like shellcheck) to analyze the script and help without waiting for any kind of response here.
That statement is wrong. People need to read anyway, either the original page or the forum. But without reading it won't work.
Copying huge amount of text into LQ is meaningless too.
Anyway, this is a problem with quotation (of arguments). You can either drop in a quick-fix (without comments) or try to explain what went wrong and how can anyone fix it - not only now, but next time too.
Additionally you can suggest external sites (like shellcheck) to analyze the script and help without waiting for any kind of response here.
The reason I don't ask questions is because Google is my homepage, I know how to read and comprehend what I read.
People with a life beyond the keyboard would rather spend more time doing life.
You're not much help.
Forums exist because the majority of people would rather not waste time reading.
LQ exists [in part] so people can be pointed at the correct places to read, and not waste time reading inaccurate or outdated information.
Quote:
Originally Posted by https://www.linuxquestions.org/questions/faq.php?faq=welcome
please understand that LQ is not a help desk, customer service line for a product you purchased or willing to do your homework (although we are happy to assist you with specifics, if you show some effort of your own!). We're a 100% volunteer organization that wants to help you help yourself.
(Forums exist as an evolution of earlier technologies, bringing the advantages of hypertext without bias on how proactive/lazy its posters may or not be.)
People with a life beyond the keyboard would rather spend more time doing life.
You seem to speak for others, in particular a certain type of user who puts in little effort, but instead leeches off others. By that you imply that the leeches have a "life" and those providing help do not [thus they have the time to support the leeches].
I see it slightly differently in that proprietary OS and paid support for distributions such as RHEL exist for example...
You seem to speak for others, in particular a certain type of user who puts in little effort, but instead leeches off others. By that you imply that the leeches have a "life" and those providing help do not [thus they have the time to support the leeches].
I see it slightly differently in that proprietary OS and paid support for distributions such as RHEL exist for example...
What I'm saying:
Your average 5 year old can do that, Google up the literature and post some links:
"Here you go idiot, I did the hard work for you" as if to imply the OP didn't have brains enough to figure out the proper keywords to Google it on their own. The OP likely either saw the links or visited them already.
Brains, you may like to remind yourself of the LQ rules, particularly the top portion of bullet points.
If you think my post violated the rules, feel free to report it to the moderator. (I doubt they agree with you, but maybe I'm wrong; I welcome constructive feedback.)
If you think the rules need to be updated to prohibit linking to relevant documentation, go ahead and start a discussion in LQ Suggestions & Feedback, where it will not be taking a thread off-topic.
On which note...
packets: If you have any follow-up questions or clarification needed about passing arguments to a script (whether individually, as arrays, whatever), please do to post them; otherwise you might like to use Thread Tools to mark the thread as solved.
What I'm saying:
Your average 5 year old can do that, Google up the literature and post some links:
"Here you go idiot, I did the hard work for you" as if to imply the OP didn't have brains enough to figure out the proper keywords to Google it on their own. The OP likely either saw the links or visited them already.
I see that as being snotty rather than helpful.
There are certainly web users who post "google it" and have the kind of attitude you allude to - I've seen it elsewhere where they can become prolific posters if allowed to run unchecked, such as the Debian forums some years ago for example, not so much here at LQ - and I'm very much of the same view that you are, when it comes to such web users.
boughtonp's post does not fit that category. That post does not contain advice to use a search engine, nor links to search engines - it contains links to documentation and it's informative. In my view you've shot from the hip, and should reconsider your response.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.