LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 04-13-2018, 06:57 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
Bash script


there is a way to tell if someone was not posting the quote properly. but this hurts

Last edited by 1s440; 04-13-2018 at 07:13 AM.
 
Old 04-13-2018, 07:00 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,718

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by 1s440 View Post
Hello all,
I need to implement script as below. Could you please suggest me?

set parameter

if (( $1 exists )) then .... else return
What would you like us to suggest?? Sounds like you've been given a homework assignment to write a simple script. What have you done/tried so far? Read the "Question Guidelines" link in my posting signature, and the LQ Rules. We're happy to help you if you're stuck, but we aren't going to do your homework/write your scripts for you.
 
Old 04-13-2018, 08:05 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by 1s440 View Post
there is a way to tell if someone was not posting the quote properly. but this hurts
Hi 1s440,

First, welcome to LQ.

I'd like to alert you to the details that LQ is intended to be a friendly and helpful site, and that everyone here, including yourself, as well as myself, are volunteers.

One of the things that makes LQ great is that people can write in to ask questions and get help. Even sometimes if the question is inadequate because the poster does not know enough to ask the right questions. Yes, sometimes that's a difficult process, but eventually we all get there, as it would seem with your other thread, https://www.linuxquestions.org/quest...ns-4175626670/.

Another great thing about the site is that people can also learn from a Solved thread, by viewing it and seeing what the questions were and how it was ultimately resolved.

For that other thread, you received some great advice from MadeInGermany and ultimately solved your problem. Meanwhile you deleted the contents of several of your posts, even having being cited as doing that by MadeInGermany. They are correct, this negates the question for others to be able to read it, and either provide additional help as well as learn about Linux. Please do not practice editing your posts by way of deletion. The purpose of allowing an edit is to help to clarify or fix minor errors, not to obliterate your question.

In this thread, user TB0ne has quoted your original question. This is actually a very helpful practice because as we can see, you edited it once again and changed the content, to remove the question.

Now ...

You've joined the LQ site to seek answers and try to work out some problems.

You submitted a question about bash scripting.

OK TB0ne challenged you to ask if you have tried these commands in a script.

Perhaps the problem here is that you've never written even a very basic script.

Suggest you look up the basics of bash scripting. In fact, TB0ne has a tutorial for bash link within their signature. I can recommend others, but likely I would recommend something exactly the same as they have in their signature.

Please take the time to review and consider updating your questions as opposed to deleting content.

If taking forward types of steps such as these are not to your preferences, then perhaps we cannot help you at the LQ site. We are happy to do so, but please realize that we wish to be interactive with you to help you solve your problem and see effort on your part, but also we prefer that you do not write problem descriptions or updates and then delete them, thus making the content purposeless.

Best Regards. And hoping you choose to update and try to solve this alongside with forum members.
 
1 members found this post helpful.
Old 04-20-2018, 05:57 AM   #4
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Hi, I donot want to make a big issue here, Of course I wrote a script myself but there was a problem in executing. I made my first entry as wrong by asking as sample with out giving a script. But the one who read my script could have asked me for it. so that I could have provided it.

But do you think the below mentioned is a polite way to answer when someone is posting for a help/suggestion?
Sounds like you've been given a homework assignment to write a simple script
we aren't going to do your homework/write your scripts for you
 
Old 04-20-2018, 08:10 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,718

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by 1s440 View Post
Hi, I donot want to make a big issue here, Of course I wrote a script myself but there was a problem in executing. I made my first entry as wrong by asking as sample with out giving a script. But the one who read my script could have asked me for it. so that I could have provided it.

But do you think the below mentioned is a polite way to answer when someone is posting for a help/suggestion?
Sounds like you've been given a homework assignment to write a simple script we aren't going to do your homework/write your scripts for you
And do you think it's polite to ignore the LQ Rules that explicitly say "do not post homework questions"? Do you think it's polite to ignore the "Question Guidelines" link that says to post your own effort when asking a question? Do you think it's polite to go back and delete not only this threads first post, but your OTHER posts as well??

Do you also think What have you done/tried so far? Read the "Question Guidelines" link in my posting signature, and the LQ Rules. We're happy to help you if you're stuck, it's polite to misquote someone??? Because you conviniently omitted this part of my first reply to you:
Quote:
Originally Posted by TB0ne
Sounds like you've been given a homework assignment to write a simple script. What have you done/tried so far? Read the "Question Guidelines" link in my posting signature, and the LQ Rules. We're happy to help you if you're stuck, but we aren't going to do your homework/write your scripts for you
The bolded part is the part you conveniently omitted, making the reply sound nasty when it wasn't.

If you wrote a script, you should have posted it when asked. You didn't. You posted a couple of lines which were probably from your textbook, that you were supposed to write the code to make work. YOU were given an assignment to complete; not us. We offered to help you when you showed us your work, and I even provided a link to a bash scripting tutorial that would have helped you get started. But none of that is, apparently, 'polite' enough.

Last edited by TB0ne; 04-20-2018 at 08:21 AM.
 
Old 04-20-2018, 08:13 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,878
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
@OP: Well, have you got any more open questions regarding programming?
 
Old 04-20-2018, 08:43 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by 1s440 View Post
Hi, I donot want to make a big issue here, Of course I wrote a script myself but there was a problem in executing. I made my first entry as wrong by asking as sample with out giving a script. But the one who read my script could have asked me for it. so that I could have provided it.

But do you think the below mentioned is a polite way to answer when someone is posting for a help/suggestion?
Sounds like you've been given a homework assignment to write a simple script
we aren't going to do your homework/write your scripts for you
@1s440,

TB0ne's first reply to you says more than you've quoted, and perhaps you have focused on what you felt to be the parts you didn't like.

Their reply does ask what have you done,. You've indicated that you most certainly wrote a script.

Their reply does say that we are happy to help , if you're stuck, and then goes on to note that we're not going to do your work for you.
Quote:
Originally Posted by TB0ne View Post
What would you like us to suggest?? Sounds like you've been given a homework assignment to write a simple script. What have you done/tried so far? Read the "Question Guidelines" link in my posting signature, and the LQ Rules. We're happy to help you if you're stuck, but we aren't going to do your homework/write your scripts for you.
I will agree that no one should be doing anyone's work, be that personal or home work. You are undertaking writing a script, you should be the owner of that script and you should be accountable for the script. Otherwise, you're not "writing" a script, you're copying something else. That also is fine, but in that case, you do not ask questions of people to support something copied, you would ask the original author of that content.

After TB0ne's first reply, what you should have done here is to post your script.

Your original question gave incomplete information, and did appear to very much be a request for a handout, as well as one that appears greatly like a homework question.

Therefore TB0ne's points to read how to ask more effective questions and also to read the LQ rules would give you clear information that homework questions are not banned on LQ, but you need to be clear what you are doing, what you have tried, and where you are stuck.

Sorry, but your original question does not say anything even close to this.

In a more specific answer to your question as to what to do when you feel another user on LQ has not followed the forum guidelines well, you have a few options:
  1. Click on the Report button to report what you feel is bad behavior
  2. Use the Contact Us link at the bottom of the page to contact site administrators with your feedback.
Please bear in mind that if another poster was terse, or brief with you, it may not necessarily be seen as any form of rules violation on LQ. There are a large number of personalities on this site.

There also is the capability to ignore users where you do not wish to see their posts - that would be option #3 if you wish to choose that one. Under My LQ see the Menu for Settings and Options, and under there is a link to manage your "ignore list"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BASH Script - What am I doing wrong in this test? - BASH Script BW-userx Programming 34 04-08-2017 01:36 PM
[SOLVED] Bash Script - Reading User Input while Processing output from Command within Bash cleeky Linux - General 5 05-27-2014 02:57 PM
[SOLVED] Converting Script from Linux (GNU) Bash 4 to Solaris Bash 2.05 - Any cheat sheet? oly_r Solaris / OpenSolaris 6 05-03-2013 08:25 AM
SSH connection from BASH script stops further BASH script commands tardis1 Linux - Newbie 3 12-06-2010 08:56 AM
[SOLVED] Using a long Bash command including single quotes and pipes in a Bash script antcore Linux - General 9 07-22-2009 11:10 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration